Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Computer program</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Computer_program"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Computer_program rootpage-Computer_program skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Computer program</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">For the TV program, see <a href="The_Computer_Programme" title="The Computer Programme"><i>The Computer Programme</i></a>.</div>

<style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}


/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1246091330">
/* start https://en.wikipedia.org/ */


.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><table class="sidebar nomobile nowraplinks"><tbody><tr><th class="sidebar-title"><a href="Execution_(computing)" title="Execution (computing)">Program execution</a></th></tr><tr><th class="sidebar-heading">
General concepts</th></tr><tr><td class="sidebar-content hlist">
<ul>
<li><a href="Translator_(computing)" title="Translator (computing)">Translation</a>
<ul><li><a href="Compiler" title="Compiler">Compiler</a></li>
<li><a href="Compile_time" title="Compile time">Compile time</a></li>
<li><a href="Optimizing_compiler" title="Optimizing compiler">Optimizing compiler</a></li></ul></li>
<li><a href="Linker_(computing)" title="Linker (computing)"> Linking</a></li>
<li><a href="Execution_(computing)" title="Execution (computing)">Execution</a>
<ul><li><a href="Runtime_system" title="Runtime system">Runtime system</a></li>
<li><a href="Executable" title="Executable">Executable</a></li>
<li><a href="Interpreter_(computing)" title="Interpreter (computing)">Interpreter</a></li>
<li><a href="Virtual_machine" title="Virtual machine">Virtual machine</a></li></ul></li>
<li><a href="Intermediate_representation" title="Intermediate representation">Intermediate representation</a> (IR)</li></ul></td>
</tr><tr><th class="sidebar-heading">
Types of code</th></tr><tr><td class="sidebar-content hlist">
<ul><li><a href="Source_code" title="Source code">Source code</a></li>
<li><a href="Object_code" title="Object code">Object code</a></li>
<li><a href="Bytecode" title="Bytecode">Bytecode</a></li>
<li><a href="Machine_code" title="Machine code">Machine code</a></li>
<li><a href="Microcode" title="Microcode">Microcode</a></li></ul></td>
</tr><tr><th class="sidebar-heading">
Compilation strategies</th></tr><tr><td class="sidebar-content hlist">
<ul><li><a href="Ahead-of-time_compilation" title="Ahead-of-time compilation">Ahead-of-time</a> (AOT)</li>
<li><a href="Just-in-time_compilation" title="Just-in-time compilation">Just-in-time</a> (JIT)
<ul><li><a href="Tracing_just-in-time_compilation" title="Tracing just-in-time compilation">Tracing just-in-time</a></li>
<li><a href="Compile_and_go_system" title="Compile and go system">Compile and go system</a></li></ul></li>
<li><a href="Precompilation" class="mw-redirect" title="Precompilation">Precompilation</a></li>
<li><a href="Source-to-source_compiler" title="Source-to-source compiler">Transcompilation</a></li>
<li><a href="Dynamic_recompilation" title="Dynamic recompilation">Recompilation</a></li></ul></td>
</tr><tr><th class="sidebar-heading">
Notable runtimes</th></tr><tr><td class="sidebar-content hlist">
<ul><li><a href="Android_Runtime" title="Android Runtime">Android Runtime</a> (ART)</li>
<li><a href="BEAM_(Erlang_virtual_machine)" title="BEAM (Erlang virtual machine)">BEAM</a> (Erlang)</li>
<li><a href="Common_Language_Runtime" title="Common Language Runtime">Common Language Runtime</a> (CLR) and&nbsp;<a href="Mono_(software)#Code_Execution_Engine" title="Mono (software)">Mono</a></li>
<li><a href="CPython" title="CPython">CPython</a> and&nbsp;<a href="PyPy" title="PyPy">PyPy</a></li>
<li><a href="Crt0" title="Crt0">crt0</a> (<a href="C_(programming_language)" title="C (programming language)">C</a> target-specific initializer)</li>
<li><a href="Java_virtual_machine" title="Java virtual machine">Java virtual machine</a> (JVM)</li>
<li><a href="LuaJIT" title="LuaJIT">LuaJIT</a></li>
<li><a href="Objective-C" title="Objective-C">Objective-C</a> and&nbsp;<a href="Swift_(programming_language)" title="Swift (programming language)">Swift</a>'s</li>
<li><a href="V8_(JavaScript_engine)" title="V8 (JavaScript engine)">V8</a> and&nbsp;<a href="Node.js" title="Node.js">Node.js</a></li>
<li><a href="Zend_Engine" title="Zend Engine">Zend Engine</a> (PHP)</li></ul></td>
</tr><tr><th class="sidebar-heading">
Notable compilers &amp; toolchains</th></tr><tr><td class="sidebar-content hlist">
<ul><li><a href="GNU_Compiler_Collection" title="GNU Compiler Collection">GNU Compiler Collection</a> (GCC)</li>
<li><a href="LLVM" title="LLVM">LLVM</a> and&nbsp;<a href="Clang" title="Clang">Clang</a></li>
<li><a href="Microsoft_Visual_C%2B%2B" title="Microsoft Visual C++">MSVC</a></li>
<li><a href="Glasgow_Haskell_Compiler" title="Glasgow Haskell Compiler">Glasgow Haskell Compiler</a> (GHC)</li></ul></td>
</tr><tr><td class="sidebar-navbar"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}


/* end https://en.wikipedia.org/ */
</style></td></tr></tbody></table>
<p>A <b>computer program</b> is a <a href="Sequence" title="Sequence">sequence</a> or set<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>a<span class="cite-bracket">]</span></a></sup> of instructions in a <a href="Programming_language" title="Programming language">programming language</a> for a <a href="Computer" title="Computer">computer</a> to <a href="Execution_(computing)" title="Execution (computing)">execute</a>. It is one component of <a href="Software" title="Software">software</a>, which also includes <a href="Software_documentation" title="Software documentation">documentation</a> and other intangible components.<sup id="cite_ref-ISO_2020_2-0" class="reference"><a href="#cite_note-ISO_2020-2"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>A <i>computer program</i> in its <a href="Human-readable" class="mw-redirect" title="Human-readable">human-readable</a> form is called <a href="Source_code" title="Source code">source code</a>. Source code needs another computer program to execute because computers can only execute their native <a href="Machine_instructions" class="mw-redirect" title="Machine instructions">machine instructions</a>. Therefore, source code may be <a href="Translator_(computing)" title="Translator (computing)">translated</a> to machine instructions using a <a href="Compiler" title="Compiler">compiler</a> written for the language. (<a href="Assembly_language" title="Assembly language">Assembly language</a> programs are translated using an <a href="Assembler_(computing)" class="mw-redirect" title="Assembler (computing)">assembler</a>.) The resulting file is called an <a href="Executable" title="Executable">executable</a>. Alternatively, source code may execute within an <a href="Interpreter_(computing)" title="Interpreter (computing)">interpreter</a> written for the language.<sup id="cite_ref-cpl_3rd-ch1-7_quoted_3-0" class="reference"><a href="#cite_note-cpl_3rd-ch1-7_quoted-3"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>If the executable is requested for execution, then the <a href="Operating_system" title="Operating system">operating system</a> <a href="Loader_(computing)" title="Loader (computing)">loads</a> it into <a href="Random-access_memory" title="Random-access memory">memory</a> and starts a <a href="Process_(computing)" title="Process (computing)">process</a>.<sup id="cite_ref-osc-ch4-p98_4-0" class="reference"><a href="#cite_note-osc-ch4-p98-4"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> The <a href="Central_processing_unit" title="Central processing unit">central processing unit</a> will soon <a href="Context_switch" title="Context switch">switch</a> to this process so it can <a href="Instruction_cycle" title="Instruction cycle">fetch, decode, and then execute</a> each machine instruction.<sup id="cite_ref-sco-ch2-p32_5-0" class="reference"><a href="#cite_note-sco-ch2-p32-5"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p><p>If the source code is requested for execution, then the operating system loads the corresponding interpreter into memory and starts a process. The interpreter then loads the source code into memory to translate and execute each <a href="Statement_(computer_science)" title="Statement (computer science)">statement</a>. Running the source code is slower than running an executable.<sup id="cite_ref-cpl_3rd-ch1-7_6-0" class="reference"><a href="#cite_note-cpl_3rd-ch1-7-6"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>b<span class="cite-bracket">]</span></a></sup> Moreover, the interpreter must be installed on the computer.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Example_computer_program">Example computer program</h2></div>
<p>The <a href="%22Hello%2C_World!%22_program" title="&quot;Hello, World!&quot; program">"Hello, World!" program</a> is used to illustrate a language's basic syntax. The syntax of the language <a href="Dartmouth_BASIC" title="Dartmouth BASIC">BASIC</a> (1964) was intentionally limited to make the language easy to learn.<sup id="cite_ref-cpl_3rd-ch2-30_quote1_8-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-30_quote1-8"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> For example, <a href="Variable_(computer_science)" title="Variable (computer science)">variables</a> are not <a href="Declaration_(computer_programming)" title="Declaration (computer programming)">declared</a> before being used.<sup id="cite_ref-cpl_3rd-ch2-31_9-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-31-9"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> Also, variables are automatically initialized to zero.<sup id="cite_ref-cpl_3rd-ch2-31_9-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-31-9"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> Here is an example computer program, in Basic, to <a href="Average" title="Average">average</a> a list of numbers:<sup id="cite_ref-cpl_3rd-ch2-30_10-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-30-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-highlight mw-highlight-lang-basic mw-content-ltr" dir="ltr"><pre><span class="nl">10</span><span class="w"> </span><span class="kr">INPUT</span><span class="w"> </span><span class="s2">"How many numbers to average?"</span><span class="p">,</span><span class="w"> </span><span class="vg">A</span>
<span class="nl">20</span><span class="w"> </span><span class="kr">FOR</span><span class="w"> </span><span class="vg">I</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="il">1</span><span class="w"> </span><span class="k">TO</span><span class="w"> </span><span class="vg">A</span>
<span class="nl">30</span><span class="w"> </span><span class="kr">INPUT</span><span class="w"> </span><span class="s2">"Enter number:"</span><span class="p">,</span><span class="w"> </span><span class="vg">B</span>
<span class="nl">40</span><span class="w"> </span><span class="kd">LET</span><span class="w"> </span><span class="vg">C</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="vg">C</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="vg">B</span>
<span class="nl">50</span><span class="w"> </span><span class="kr">NEXT</span><span class="w"> </span><span class="vg">I</span>
<span class="nl">60</span><span class="w"> </span><span class="kd">LET</span><span class="w"> </span><span class="vg">D</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="vg">C</span><span class="o">/</span><span class="vg">A</span>
<span class="nl">70</span><span class="w"> </span><span class="kr">PRINT</span><span class="w"> </span><span class="s2">"The average is"</span><span class="p">,</span><span class="w"> </span><span class="vg">D</span>
<span class="nl">80</span><span class="w"> </span><span class="kr">END</span>
</pre></div>
<p>Once the mechanics of basic computer programming are learned, more sophisticated and powerful languages are available to build large computer systems.<sup id="cite_ref-cpl_3rd-ch2-30_quote2_11-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-30_quote2-11"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<div role="note" class="hatnote navigation-not-searchable">See also: <a href="Computer_programming#History" title="Computer programming">Computer programming §&nbsp;History</a>, <a href="Programmer#History" title="Programmer">Programmer §&nbsp;History</a>, <a href="History_of_computing" title="History of computing">History of computing</a>, <a href="History_of_programming_languages" title="History of programming languages">History of programming languages</a>, and <a href="History_of_software" title="History of software">History of software</a></div>
<p>Improvements in <a href="Software_development" title="Software development">software development</a> are the result of improvements in <a href="Computer_hardware" title="Computer hardware">computer hardware</a>. At each stage in hardware's history, the task of <a href="Computer_programming" title="Computer programming">computer programming</a> changed dramatically.
</p>
<div class="mw-heading mw-heading3"><h3 id="Analytical_Engine">Analytical Engine</h3></div>

<p>In 1837, <a href="Jacquard_machine" title="Jacquard machine">Jacquard's loom</a> inspired <a href="Charles_Babbage" title="Charles Babbage">Charles Babbage</a> to attempt to build the <a href="Analytical_Engine" class="mw-redirect" title="Analytical Engine">Analytical Engine</a>.<sup id="cite_ref-eniac-ch1-p16_12-0" class="reference"><a href="#cite_note-eniac-ch1-p16-12"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
The names of the components of the calculating device were borrowed from the textile industry. In the textile industry, yarn was brought from the store to be milled. The device had a <i>store</i> which consisted of memory to hold 1,000 numbers of 50 decimal digits each.<sup id="cite_ref-sco-ch1-p14_13-0" class="reference"><a href="#cite_note-sco-ch1-p14-13"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> Numbers from the <i>store</i> were transferred to the <i>mill</i> for processing. The engine was programmed using two sets of perforated cards. One set directed the operation and the other set inputted the variables.<sup id="cite_ref-eniac-ch1-p16_12-1" class="reference"><a href="#cite_note-eniac-ch1-p16-12"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> However, the thousands of cogged wheels and gears never fully worked together.<sup id="cite_ref-sco-ch1-p15_15-0" class="reference"><a href="#cite_note-sco-ch1-p15-15"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
</p><p><a href="Ada_Lovelace" title="Ada Lovelace">Ada Lovelace</a> worked for Charles Babbage to create a description of the Analytical Engine (1843).<sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup> The description contained Note G which completely detailed a method for calculating <a href="Bernoulli_number" title="Bernoulli number">Bernoulli numbers</a> using the Analytical Engine. This note is recognized by some historians as the world's first <i>computer program</i>.<sup id="cite_ref-sco-ch1-p15_15-1" class="reference"><a href="#cite_note-sco-ch1-p15-15"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Universal_Turing_machine">Universal Turing machine</h3></div>

<p>In 1936, <a href="Alan_Turing" title="Alan Turing">Alan Turing</a> introduced the <a href="Universal_Turing_machine" title="Universal Turing machine">Universal Turing machine</a>, a theoretical device that can model every computation.<sup id="cite_ref-discrete-ch10-p654_17-0" class="reference"><a href="#cite_note-discrete-ch10-p654-17"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup>
It is a <a href="Finite-state_machine" title="Finite-state machine">finite-state machine</a> that has an infinitely long read/write tape. The machine can move the tape back and forth, changing its contents as it performs an <a href="Algorithm" title="Algorithm">algorithm</a>. The machine starts in the initial state, goes through a sequence of steps, and halts when it encounters the halt state.<sup id="cite_ref-formal_languages-ch9-p234_18-0" class="reference"><a href="#cite_note-formal_languages-ch9-p234-18"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> All present-day computers are <a href="Turing_complete" class="mw-redirect" title="Turing complete">Turing complete</a>.<sup id="cite_ref-formal_languages-ch9-p243_19-0" class="reference"><a href="#cite_note-formal_languages-ch9-p243-19"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="ENIAC">ENIAC</h3></div>

<p>The <a href="Electronic_Numerical_Integrator_And_Computer" class="mw-redirect" title="Electronic Numerical Integrator And Computer">Electronic Numerical Integrator And Computer</a> (ENIAC) was built between July 1943 and Fall 1945. It was a Turing complete, general-purpose computer that used 17,468 <a href="Vacuum_tube" title="Vacuum tube">vacuum tubes</a> to create the <a href="Electronic_circuit" title="Electronic circuit">circuits</a>. At its core, it was a series of <a href="Pascaline" title="Pascaline">Pascalines</a> wired together.<sup id="cite_ref-eniac-ch5-p102_20-0" class="reference"><a href="#cite_note-eniac-ch5-p102-20"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> Its 40 units weighed 30 tons, occupied 1,800 square feet (167&nbsp;m<sup>2</sup>), and consumed $650 per hour (<a href="Inflation" title="Inflation">in 1940s currency</a>) in electricity when idle.<sup id="cite_ref-eniac-ch5-p102_20-1" class="reference"><a href="#cite_note-eniac-ch5-p102-20"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> It had 20 <a href="Base-10" class="mw-redirect" title="Base-10">base-10</a> <a href="Accumulator_(computing)" title="Accumulator (computing)">accumulators</a>. Programming the ENIAC took up to two months.<sup id="cite_ref-eniac-ch5-p102_20-2" class="reference"><a href="#cite_note-eniac-ch5-p102-20"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> Three function tables were on wheels and needed to be rolled to fixed function panels. Function tables were connected to function panels by plugging heavy black cables into <a href="Plugboard" title="Plugboard">plugboards</a>. Each function table had 728 rotating knobs. Programming the ENIAC also involved setting some of the 3,000 switches. Debugging a program took a week.<sup id="cite_ref-eniac-ch5-p94_21-0" class="reference"><a href="#cite_note-eniac-ch5-p94-21"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> It ran from 1947 until 1955 at <a href="Aberdeen_Proving_Ground" title="Aberdeen Proving Ground">Aberdeen Proving Ground</a>, calculating hydrogen bomb parameters, predicting weather patterns, and producing firing tables to aim artillery guns.<sup id="cite_ref-eniac-ch5-p107_22-0" class="reference"><a href="#cite_note-eniac-ch5-p107-22"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Stored-program_computers">Stored-program computers</h3></div>
<p>Instead of plugging in cords and turning switches, a <a href="Stored-program_computer" title="Stored-program computer">stored-program computer</a> loads its instructions into <a href="Random-access_memory" title="Random-access memory">memory</a> just like it loads its data into memory.<sup id="cite_ref-eniac-ch6-p120_23-0" class="reference"><a href="#cite_note-eniac-ch6-p120-23"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> As a result, the computer could be programmed quickly and perform calculations at very fast speeds.<sup id="cite_ref-eniac-ch6-p118_24-0" class="reference"><a href="#cite_note-eniac-ch6-p118-24"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup> <a href="Presper_Eckert" class="mw-redirect" title="Presper Eckert">Presper Eckert</a> and <a href="John_Mauchly" title="John Mauchly">John Mauchly</a> built the ENIAC. The two engineers introduced the <i>stored-program concept</i> in a three-page memo dated February 1944.<sup id="cite_ref-eniac-ch6-p119_25-0" class="reference"><a href="#cite_note-eniac-ch6-p119-25"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup> Later, in September 1944, <a href="John_von_Neumann" title="John von Neumann">John von Neumann</a> began working on the ENIAC project. On June 30, 1945, von Neumann published the <i><a href="First_Draft_of_a_Report_on_the_EDVAC" title="First Draft of a Report on the EDVAC">First Draft of a Report on the EDVAC</a></i>, which equated the structures of the computer with the structures of the human brain.<sup id="cite_ref-eniac-ch6-p118_24-1" class="reference"><a href="#cite_note-eniac-ch6-p118-24"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup> The design became known as the <a href="Von_Neumann_architecture" title="Von Neumann architecture">von Neumann architecture</a>. The architecture was simultaneously deployed in the constructions of the <a href="EDVAC" title="EDVAC">EDVAC</a> and <a href="EDSAC" title="EDSAC">EDSAC</a> computers in 1949.<sup id="cite_ref-eniac-ch6-p123_26-0" class="reference"><a href="#cite_note-eniac-ch6-p123-26"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup>
</p><p>The <a href="IBM_System/360" title="IBM System/360">IBM System/360</a> (1964) was a family of computers, each having the same <a href="Instruction_set_architecture" title="Instruction set architecture">instruction set architecture</a>. The <a href="IBM_System/360_Model_20" title="IBM System/360 Model 20">Model 20</a> was the smallest and least expensive. Customers could upgrade and retain the same <a href="Application_software" title="Application software">application software</a>.<sup id="cite_ref-sco-ch1-p21_28-0" class="reference"><a href="#cite_note-sco-ch1-p21-28"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup> The <a href="IBM_System/360_Model_195" title="IBM System/360 Model 195">Model 195</a> was the most premium. Each System/360 model featured <a href="Multiprogramming" class="mw-redirect" title="Multiprogramming">multiprogramming</a><sup id="cite_ref-sco-ch1-p21_28-1" class="reference"><a href="#cite_note-sco-ch1-p21-28"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup>—having multiple <a href="Process_(computing)" title="Process (computing)">processes</a> in <a href="Random-access_memory" title="Random-access memory">memory</a> at once. When one process was waiting for <a href="Input/output" title="Input/output">input/output</a>, another could compute.
</p><p>IBM planned for each model to be programmed using <a href="PL/1" class="mw-redirect" title="PL/1">PL/1</a>.<sup id="cite_ref-cpl_3rd-ch2-27_29-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-27-29"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup> A committee was formed that included <a href="COBOL" title="COBOL">COBOL</a>, <a href="Fortran" title="Fortran">Fortran</a> and <a href="ALGOL" title="ALGOL">ALGOL</a> programmers. The purpose was to develop a language that was comprehensive, easy to use, extendible, and would replace Cobol and Fortran.<sup id="cite_ref-cpl_3rd-ch2-27_29-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-27-29"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup> The result was a large and complex language that took a long time to <a href="Compile" class="mw-redirect" title="Compile">compile</a>.<sup id="cite_ref-cpl_3rd-ch2-29_30-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-29-30"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup>
</p>

<p>Computers manufactured until the 1970s had front-panel switches for manual programming.<sup id="cite_ref-osc-ch1-p6_31-0" class="reference"><a href="#cite_note-osc-ch1-p6-31"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup> The computer program was written on paper for reference. An instruction was represented by a configuration of on/off settings. After setting the configuration, an execute button was pressed. This process was then repeated. Computer programs also were automatically inputted via <a href="Paper_tape" class="mw-redirect" title="Paper tape">paper tape</a>, <a href="Punched_cards" class="mw-redirect" title="Punched cards">punched cards</a> or <a href="9-track_tape" title="9-track tape">magnetic-tape</a>. After the medium was loaded, the starting address was set via switches, and the execute button was pressed.<sup id="cite_ref-osc-ch1-p6_31-1" class="reference"><a href="#cite_note-osc-ch1-p6-31"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Very_Large_Scale_Integration">Very Large Scale Integration</h3></div>

<p>A major milestone in software development was the invention of the <a href="Very_Large_Scale_Integration" class="mw-redirect" title="Very Large Scale Integration">Very Large Scale Integration</a> (VLSI) circuit (1964).
</p><p><a href="Robert_Noyce" title="Robert Noyce">Robert Noyce</a>, co-founder of <a href="Fairchild_Semiconductor" title="Fairchild Semiconductor">Fairchild Semiconductor</a> (1957) and <a href="Intel" title="Intel">Intel</a> (1968), achieved a technological improvement to refine the <a href="Semiconductor_device_fabrication" title="Semiconductor device fabrication">production</a> of <a href="Field-effect_transistor" title="Field-effect transistor">field-effect transistors</a> (1963).<sup id="cite_ref-digital_age_32-0" class="reference"><a href="#cite_note-digital_age-32"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup> The goal is to alter the <a href="Electrical_resistivity_and_conductivity" title="Electrical resistivity and conductivity">electrical resistivity and conductivity</a> of a <a href="Semiconductor_junction" class="mw-redirect" title="Semiconductor junction">semiconductor junction</a>. First, naturally occurring <a href="Silicate_minerals" class="mw-redirect" title="Silicate minerals">silicate minerals</a> are converted into <a href="Polysilicon" class="mw-redirect" title="Polysilicon">polysilicon</a> rods using the <a href="Siemens_process" class="mw-redirect" title="Siemens process">Siemens process</a>.<sup id="cite_ref-osti_33-0" class="reference"><a href="#cite_note-osti-33"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup> The <a href="Czochralski_process" class="mw-redirect" title="Czochralski process">Czochralski process</a> then converts the rods into a <a href="Monocrystalline_silicon" title="Monocrystalline silicon">monocrystalline silicon</a>, <a href="Boule_(crystal)" title="Boule (crystal)">boule crystal</a>.<sup id="cite_ref-britannica_wafer_34-0" class="reference"><a href="#cite_note-britannica_wafer-34"><span class="cite-bracket">[</span>32<span class="cite-bracket">]</span></a></sup> The <a href="Crystal" title="Crystal">crystal</a> is then thinly sliced to form a <a href="Wafer_(electronics)" title="Wafer (electronics)">wafer</a> <a href="Substrate_(materials_science)" title="Substrate (materials science)">substrate</a>. The <a href="Planar_process" title="Planar process">planar process</a> of <a href="Photolithography" title="Photolithography">photolithography</a> then <i>integrates</i> unipolar transistors, <a href="Capacitor" title="Capacitor">capacitors</a>, <a href="Diode" title="Diode">diodes</a>, and <a href="Resistor" title="Resistor">resistors</a> onto the wafer to build a matrix of <a href="Metal%E2%80%93oxide%E2%80%93semiconductor" class="mw-redirect" title="Metal–oxide–semiconductor">metal–oxide–semiconductor</a> (MOS) transistors.<sup id="cite_ref-anysilicon_35-0" class="reference"><a href="#cite_note-anysilicon-35"><span class="cite-bracket">[</span>33<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-britannica_micropressor_36-0" class="reference"><a href="#cite_note-britannica_micropressor-36"><span class="cite-bracket">[</span>34<span class="cite-bracket">]</span></a></sup> The MOS transistor is the primary component in <i>integrated circuit chips</i>.<sup id="cite_ref-digital_age_32-1" class="reference"><a href="#cite_note-digital_age-32"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup>
</p><p>Originally, <a href="Integrated_circuit" title="Integrated circuit">integrated circuit</a> chips had their function set during manufacturing. During the 1960s, controlling the electrical flow migrated to programming a <a href="Diode_matrix" title="Diode matrix">matrix</a> of <a href="Read-only_memory" title="Read-only memory">read-only memory</a> (ROM). The matrix resembled a two-dimensional array of fuses. The process to embed instructions onto the matrix was to burn out the unneeded connections. There were so many connections, <a href="Firmware" title="Firmware">firmware</a> programmers wrote a <i>computer program</i> on another chip to oversee the burning. The technology became known as <a href="Programmable_ROM" title="Programmable ROM">Programmable ROM</a>. In 1971, Intel installed the computer program onto the chip and named it the <a href="Intel_4004" title="Intel 4004">Intel 4004</a> <a href="Microprocessor" title="Microprocessor">microprocessor</a>.<sup id="cite_ref-intel_4004_37-0" class="reference"><a href="#cite_note-intel_4004-37"><span class="cite-bracket">[</span>35<span class="cite-bracket">]</span></a></sup>
</p>

<p>The terms <i>microprocessor</i> and <a href="Central_processing_unit" title="Central processing unit">central processing unit</a> (CPU) are now used interchangeably. However, CPUs predate microprocessors. For example, the <a href="IBM_System/360" title="IBM System/360">IBM System/360</a> (1964) had a CPU made from <a href="IBM_Solid_Logic_Technology" class="mw-redirect" title="IBM Solid Logic Technology">circuit boards containing discrete components on ceramic substrates</a>.<sup id="cite_ref-ibm_360_38-0" class="reference"><a href="#cite_note-ibm_360-38"><span class="cite-bracket">[</span>36<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="x86_series">x86 series</h3></div>

<p>In 1978, the modern software development environment began when Intel upgraded the <a href="Intel_8080" title="Intel 8080">Intel 8080</a> to the <a href="Intel_8086" title="Intel 8086">Intel 8086</a>. Intel simplified the Intel 8086 to manufacture the cheaper <a href="Intel_8088" title="Intel 8088">Intel 8088</a>.<sup id="cite_ref-infoworld_8-23-82_39-0" class="reference"><a href="#cite_note-infoworld_8-23-82-39"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> <a href="IBM" title="IBM">IBM</a> embraced the Intel 8088 when they entered the <a href="Personal_computer" title="Personal computer">personal computer</a> market (1981). As <a href="Consumer" title="Consumer">consumer</a> <a href="Demand" title="Demand">demand</a> for personal computers increased, so did Intel's microprocessor development. The succession of development is known as the <a href="X86" title="X86">x86 series</a>. The <a href="X86_assembly_language" title="X86 assembly language">x86 assembly language</a> is a family of <a href="Backward-compatible" class="mw-redirect" title="Backward-compatible">backward-compatible</a> <a href="Machine_instruction" class="mw-redirect" title="Machine instruction">machine instructions</a>. Machine instructions created in earlier microprocessors were retained throughout microprocessor upgrades. This enabled consumers to purchase new computers without having to purchase new <a href="Application_software" title="Application software">application software</a>. The major categories of instructions are:<sup id="cite_ref-40" class="reference"><a href="#cite_note-40"><span class="cite-bracket">[</span>c<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>Memory instructions to set and access numbers and <a href="String_(computer_science)" title="String (computer science)">strings</a> in <a href="Random-access_memory" title="Random-access memory">random-access memory</a>.</li>
<li>Integer <a href="Arithmetic_logic_unit" title="Arithmetic logic unit">arithmetic logic unit</a> (ALU) instructions to perform the primary arithmetic operations on <a href="Integers" class="mw-redirect" title="Integers">integers</a>.</li>
<li>Floating point ALU instructions to perform the primary arithmetic operations on <a href="Real_number" title="Real number">real numbers</a>.</li>
<li><a href="Call_stack" title="Call stack">Call stack</a> instructions to push and pop <a href="Word_(computer_architecture)" title="Word (computer architecture)">words</a> needed to allocate memory and interface with <a href="Function_(computer_programming)" title="Function (computer programming)">functions</a>.</li>
<li><a href="Single_instruction%2C_multiple_data" title="Single instruction, multiple data">Single instruction, multiple data</a> (SIMD) instructions<sup id="cite_ref-41" class="reference"><a href="#cite_note-41"><span class="cite-bracket">[</span>d<span class="cite-bracket">]</span></a></sup> to increase speed when multiple processors are available to perform the same <a href="Algorithm" title="Algorithm">algorithm</a> on an <a href="Array_data_structure" class="mw-redirect" title="Array data structure">array of data</a>.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Changing_programming_environment">Changing programming environment</h3></div>

<p>VLSI circuits enabled the <a href="Programming_environment" class="mw-redirect" title="Programming environment">programming environment</a> to advance from a <a href="Computer_terminal" title="Computer terminal">computer terminal</a> (until the 1990s) to a <a href="Graphical_user_interface" title="Graphical user interface">graphical user interface</a> (GUI) computer. Computer terminals limited programmers to a single <a href="Shell_(computing)" title="Shell (computing)">shell</a> running in a <a href="Command-line_interface" title="Command-line interface">command-line environment</a>. During the 1970s, full-screen source code editing became possible through a <a href="Text-based_user_interface" title="Text-based user interface">text-based user interface</a>. Regardless of the technology available, the goal is to program in a <a href="Programming_language" title="Programming language">programming language</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Programming_paradigms_and_languages">Programming paradigms and languages</h2></div>
<p>Programming language features exist to provide building blocks to be combined to express programming ideals.<sup id="cite_ref-stroustrup-ch1-10_42-0" class="reference"><a href="#cite_note-stroustrup-ch1-10-42"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup> Ideally, a programming language should:<sup id="cite_ref-stroustrup-ch1-10_42-1" class="reference"><a href="#cite_note-stroustrup-ch1-10-42"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>express ideas directly in the code.</li>
<li>express independent ideas independently.</li>
<li>express relationships among ideas directly in the code.</li>
<li>combine ideas freely.</li>
<li>combine ideas only where combinations make sense.</li>
<li>express simple ideas simply.</li></ul>
<p>The <a href="Programming_style" title="Programming style">programming style</a> of a programming language to provide these building blocks may be categorized into <a href="Programming_paradigm" title="Programming paradigm">programming paradigms</a>.<sup id="cite_ref-stroustrup-ch1-11_43-0" class="reference"><a href="#cite_note-stroustrup-ch1-11-43"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup> For example, different paradigms may differentiate:<sup id="cite_ref-stroustrup-ch1-11_43-1" class="reference"><a href="#cite_note-stroustrup-ch1-11-43"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li><a href="Procedural_programming" title="Procedural programming">procedural languages</a>, <a href="Functional_language" class="mw-redirect" title="Functional language">functional languages</a>, and <a href="Logic_programming" title="Logic programming">logical languages</a>.</li>
<li>different levels of <a href="Data_abstraction" class="mw-redirect" title="Data abstraction">data abstraction</a>.</li>
<li>different levels of <a href="Class_hierarchy" title="Class hierarchy">class hierarchy</a>.</li>
<li>different levels of input <a href="Datatypes" class="mw-redirect" title="Datatypes">datatypes</a>, as in <a href="Container_(abstract_data_type)" title="Container (abstract data type)">container types</a> and <a href="Generic_programming" title="Generic programming">generic programming</a>.</li></ul>
<p>Each of these programming styles has contributed to the synthesis of different <i>programming languages</i>.<sup id="cite_ref-stroustrup-ch1-11_43-2" class="reference"><a href="#cite_note-stroustrup-ch1-11-43"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup>
</p><p>A <i>programming language</i> is a set of <a href="Reserved_word" title="Reserved word">keywords</a>, <a href="Character_(computing)" title="Character (computing)">symbols</a>, <a href="Identifier_(computer_languages)" title="Identifier (computer languages)">identifiers</a>, and rules by which programmers can communicate instructions to the computer.<sup id="cite_ref-pis-ch4-p159_44-0" class="reference"><a href="#cite_note-pis-ch4-p159-44"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup> They follow a set of rules called a <a href="Syntax_(programming_languages)" title="Syntax (programming languages)">syntax</a>.<sup id="cite_ref-pis-ch4-p159_44-1" class="reference"><a href="#cite_note-pis-ch4-p159-44"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li><i>Keywords</i> are reserved words to form <a href="Declaration_(computer_programming)" title="Declaration (computer programming)">declarations</a> and <a href="Statement_(computer_science)" title="Statement (computer science)">statements</a>.</li>
<li><i>Symbols</i> are characters to form <a href="Operation_(mathematics)" title="Operation (mathematics)">operations</a>, <a href="Assignment_(computer_science)" title="Assignment (computer science)">assignments</a>, <a href="Control_flow" title="Control flow">control flow</a>, and <a href="Delimiter" title="Delimiter">delimiters</a>.</li>
<li><i>Identifiers</i> are words created by programmers to form <a href="Constant_(computer_programming)" title="Constant (computer programming)">constants</a>, <a href="Variable_(computer_science)" title="Variable (computer science)">variable names</a>, <a href="Record_(computer_science)" title="Record (computer science)">structure names</a>, and <a href="Function_(computer_programming)" title="Function (computer programming)">function names</a>.</li>
<li><i>Syntax Rules</i> are defined in the <a href="Backus%E2%80%93Naur_form" title="Backus–Naur form">Backus–Naur form</a>.</li></ul>
<p><i>Programming languages</i> get their basis from <a href="Formal_language" title="Formal language">formal languages</a>.<sup id="cite_ref-fla-ch1-p2_45-0" class="reference"><a href="#cite_note-fla-ch1-p2-45"><span class="cite-bracket">[</span>41<span class="cite-bracket">]</span></a></sup> The purpose of defining a solution in terms of its <i>formal language</i> is to generate an <a href="Algorithm" title="Algorithm">algorithm</a> to solve the underlining problem.<sup id="cite_ref-fla-ch1-p2_45-1" class="reference"><a href="#cite_note-fla-ch1-p2-45"><span class="cite-bracket">[</span>41<span class="cite-bracket">]</span></a></sup> An <i>algorithm</i> is a sequence of simple instructions that solve a problem.<sup id="cite_ref-dsa-ch2-p29_46-0" class="reference"><a href="#cite_note-dsa-ch2-p29-46"><span class="cite-bracket">[</span>42<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Generations_of_programming_language">Generations of programming language</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Programming_language_generations" title="Programming language generations">Programming language generations</a></div>

<p>The evolution of programming languages began when the <a href="EDSAC" title="EDSAC">EDSAC</a> (1949) used the first <a href="Stored-program_computer" title="Stored-program computer">stored computer program</a> in its <a href="Von_Neumann_architecture" title="Von Neumann architecture">von Neumann architecture</a>.<sup id="cite_ref-sco-ch1-p17_47-0" class="reference"><a href="#cite_note-sco-ch1-p17-47"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup> Programming the EDSAC was in the first <a href="Programming_language_generations" title="Programming language generations">generation of programming language</a>.<sup id="cite_ref-48" class="reference"><a href="#cite_note-48"><span class="cite-bracket">[</span>44<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>The <a href="First-generation_programming_language" title="First-generation programming language">first generation of programming language</a> is <a href="Machine_language" class="mw-redirect" title="Machine language">machine language</a>.<sup id="cite_ref-pis-ch4-p160_49-0" class="reference"><a href="#cite_note-pis-ch4-p160-49"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> <i>Machine language</i> requires the programmer to enter instructions using <i>instruction numbers</i> called <a href="Machine_code" title="Machine code">machine code</a>. For example, the ADD operation on the <a href="PDP-11_architecture" title="PDP-11 architecture">PDP-11</a> has instruction number 24576.<sup id="cite_ref-50" class="reference"><a href="#cite_note-50"><span class="cite-bracket">[</span>e<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-sco-ch7-p399_51-0" class="reference"><a href="#cite_note-sco-ch7-p399-51"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup></li></ul>
<ul><li>The <a href="Second-generation_programming_language" title="Second-generation programming language">second generation of programming language</a> is <a href="Assembly_language" title="Assembly language">assembly language</a>.<sup id="cite_ref-pis-ch4-p160_49-1" class="reference"><a href="#cite_note-pis-ch4-p160-49"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> <i>Assembly language</i> allows the programmer to use <a href="Assembly_language#Mnemonics" title="Assembly language">mnemonic</a> <a href="Instruction_set_architecture#Instructions" title="Instruction set architecture">instructions</a> instead of remembering instruction numbers. An <a href="Assembler_(computing)" class="mw-redirect" title="Assembler (computing)">assembler</a> translates each assembly language mnemonic into its machine language number. For example, on the PDP-11, the operation 24576 can be referenced as ADD R0,R0 in the source code.<sup id="cite_ref-sco-ch7-p399_51-1" class="reference"><a href="#cite_note-sco-ch7-p399-51"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup> The four basic arithmetic operations have assembly instructions like ADD, SUB, MUL, and DIV.<sup id="cite_ref-sco-ch7-p399_51-2" class="reference"><a href="#cite_note-sco-ch7-p399-51"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup> Computers also have instructions like DW (Define <a href="Word_(computer_architecture)" title="Word (computer architecture)">Word</a>) to reserve <a href="Random-access_memory" title="Random-access memory">memory</a> cells. Then the MOV instruction can copy <a href="Integer" title="Integer">integers</a> between <a href="Processor_register" title="Processor register">registers</a> and memory.</li></ul>
<dl><dd><ul><li>The basic structure of an assembly language statement is a label, <a href="Operation_(mathematics)" title="Operation (mathematics)">operation</a>, <a href="Operand" title="Operand">operand</a>, and comment.<sup id="cite_ref-sco-ch7-p400_52-0" class="reference"><a href="#cite_note-sco-ch7-p400-52"><span class="cite-bracket">[</span>47<span class="cite-bracket">]</span></a></sup></li></ul>
<dl><dd><ul><li><i>Labels</i> allow the programmer to work with <a href="Variable_(computer_science)" title="Variable (computer science)">variable names</a>. The assembler will later translate labels into physical <a href="Memory_address" title="Memory address">memory addresses</a>.</li>
<li><i>Operations</i> allow the programmer to work with mnemonics. The assembler will later translate mnemonics into instruction numbers.</li>
<li><i>Operands</i> tell the assembler which data the operation will process.</li>
<li><i>Comments</i> allow the programmer to articulate a narrative because the instructions alone are vague.</li></ul></dd>
<dd>The key characteristic of an assembly language program is it forms a one-to-one mapping to its corresponding machine language target.<sup id="cite_ref-sco-ch7-p398_53-0" class="reference"><a href="#cite_note-sco-ch7-p398-53"><span class="cite-bracket">[</span>48<span class="cite-bracket">]</span></a></sup></dd></dl></dd></dl>
<ul><li>The <a href="Third-generation_programming_language" title="Third-generation programming language">third generation of programming language</a> uses <a href="Compiler" title="Compiler">compilers</a> and <a href="Interpreter_(computing)" title="Interpreter (computing)">interpreters</a> to execute computer programs. The distinguishing feature of a <i>third generation</i> language is its independence from particular hardware.<sup id="cite_ref-cpl_3rd-ch2-26_54-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-26-54"><span class="cite-bracket">[</span>49<span class="cite-bracket">]</span></a></sup> Early languages include <a href="Fortran" title="Fortran">Fortran</a> (1958), <a href="COBOL" title="COBOL">COBOL</a> (1959), <a href="ALGOL" title="ALGOL">ALGOL</a> (1960), and <a href="BASIC" title="BASIC">BASIC</a> (1964).<sup id="cite_ref-pis-ch4-p160_49-2" class="reference"><a href="#cite_note-pis-ch4-p160-49"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> In 1973, the <a href="C_programming_language" class="mw-redirect" title="C programming language">C programming language</a> emerged as a <a href="High-level_language" class="mw-redirect" title="High-level language">high-level language</a> that produced efficient machine language instructions.<sup id="cite_ref-cpl_3rd-ch2-37_55-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-37-55"><span class="cite-bracket">[</span>50<span class="cite-bracket">]</span></a></sup> Whereas <i>third-generation</i> languages historically generated many machine instructions for each statement,<sup id="cite_ref-pis-ch4-p160_quote1_56-0" class="reference"><a href="#cite_note-pis-ch4-p160_quote1-56"><span class="cite-bracket">[</span>51<span class="cite-bracket">]</span></a></sup> C has statements that may generate a single machine instruction.<sup id="cite_ref-57" class="reference"><a href="#cite_note-57"><span class="cite-bracket">[</span>f<span class="cite-bracket">]</span></a></sup> Moreover, an <a href="Optimizing_compiler" title="Optimizing compiler">optimizing compiler</a> might overrule the programmer and produce fewer machine instructions than statements. Today, an entire <a href="Programming_paradigm" title="Programming paradigm">paradigm</a> of languages fill the <a href="Imperative_programming" title="Imperative programming">imperative</a>, <i>third generation</i> spectrum.</li></ul>
<ul><li>The <a href="Fourth-generation_programming_language" title="Fourth-generation programming language">fourth generation of programming language</a> emphasizes what output results are desired, rather than how programming statements should be constructed.<sup id="cite_ref-pis-ch4-p160_49-3" class="reference"><a href="#cite_note-pis-ch4-p160-49"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> <a href="Declarative_language" class="mw-redirect" title="Declarative language">Declarative languages</a> attempt to limit <a href="Side_effect_(computer_science)" title="Side effect (computer science)">side effects</a> and allow programmers to write code with relatively few errors.<sup id="cite_ref-pis-ch4-p160_49-4" class="reference"><a href="#cite_note-pis-ch4-p160-49"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> One popular <i>fourth generation</i> language is called <a href="Structured_Query_Language" class="mw-redirect" title="Structured Query Language">Structured Query Language</a> (SQL).<sup id="cite_ref-pis-ch4-p160_49-5" class="reference"><a href="#cite_note-pis-ch4-p160-49"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> <a href="Database" title="Database">Database</a> developers no longer need to process each database record one at a time. Also, a simple <a href="Select_(SQL)" title="Select (SQL)">select statement</a> can generate output records without having to understand how they are retrieved.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Imperative_languages">Imperative languages</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Imperative_programming" title="Imperative programming">Imperative programming</a></div>

<p><i>Imperative languages</i> specify a sequential <a href="Algorithm#Computer_algorithm" title="Algorithm">algorithm</a> using <a href="Declaration_(computer_programming)" title="Declaration (computer programming)">declarations</a>, <a href="Expression_(computer_science)" title="Expression (computer science)">expressions</a>, and <a href="Statement_(computer_science)" title="Statement (computer science)">statements</a>:<sup id="cite_ref-cpl-ch4-75_58-0" class="reference"><a href="#cite_note-cpl-ch4-75-58"><span class="cite-bracket">[</span>52<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>A <i>declaration</i> introduces a <a href="Variable_(programming)" class="mw-redirect" title="Variable (programming)">variable</a> name to the <i>computer program</i> and assigns it to a <a href="Datatype" class="mw-redirect" title="Datatype">datatype</a><sup id="cite_ref-stroustrup-ch2-40_59-0" class="reference"><a href="#cite_note-stroustrup-ch2-40-59"><span class="cite-bracket">[</span>53<span class="cite-bracket">]</span></a></sup> – for example: <code>var x: integer;</code></li>
<li>An <i>expression</i> yields a value – for example: <code>2 + 2</code> yields 4</li>
<li>A <i>statement</i> might <a href="Assignment_(computer_science)" title="Assignment (computer science)">assign</a> an expression to a variable or use the value of a variable to alter the program's <a href="Control_flow" title="Control flow">control flow</a> – for example: <code>x&nbsp;:= 2 + 2; <a href="Conditional_(computer_programming)#If–then(–else)" title="Conditional (computer programming)">if</a> x = 4 then do_something();</code></li></ul>
<div class="mw-heading mw-heading4"><h4 id="Fortran">Fortran</h4></div>
<p><a href="FORTRAN" class="mw-redirect" title="FORTRAN">FORTRAN</a> (1958) was unveiled as "The IBM Mathematical FORmula TRANslating system". It was designed for scientific calculations, without <a href="String_(computer_science)" title="String (computer science)">string</a> handling facilities. Along with <a href="Declaration_(computer_programming)" title="Declaration (computer programming)">declarations</a>, <a href="Expression_(computer_science)" title="Expression (computer science)">expressions</a>, and <a href="Statement_(computer_science)" title="Statement (computer science)">statements</a>, it supported:
</p>
<ul><li><a href="Array_data_structure" class="mw-redirect" title="Array data structure">arrays</a>.</li>
<li><a href="Function_(computer_programming)#Jump_to_subroutine" title="Function (computer programming)">subroutines</a>.</li>
<li><a href="For_loop#1957:_FORTRAN" title="For loop">"do" loops</a>.</li></ul>
<p>It succeeded because:
</p>
<ul><li>programming and debugging costs were below computer running costs.</li>
<li>it was supported by IBM.</li>
<li>applications at the time were scientific.<sup id="cite_ref-cpl_3rd-ch2-16_60-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-16-60"><span class="cite-bracket">[</span>54<span class="cite-bracket">]</span></a></sup></li></ul>
<p>However, non-IBM vendors also wrote Fortran compilers, but with a syntax that would likely fail IBM's compiler.<sup id="cite_ref-cpl_3rd-ch2-16_60-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-16-60"><span class="cite-bracket">[</span>54<span class="cite-bracket">]</span></a></sup> The <a href="American_National_Standards_Institute" title="American National Standards Institute">American National Standards Institute</a> (ANSI) developed the first Fortran standard in 1966. In 1978, Fortran 77 became the standard until 1991. Fortran 90 supports:
</p>
<ul><li><a href="Record_(computer_science)" title="Record (computer science)">records</a>.</li>
<li><a href="Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a> to arrays.</li></ul>
<div class="mw-heading mw-heading4"><h4 id="COBOL">COBOL</h4></div>
<p><a href="COBOL" title="COBOL">COBOL</a> (1959) stands for "COmmon Business Oriented Language". Fortran manipulated symbols. It was soon realized that symbols did not need to be numbers, so <a href="String_(computer_science)" title="String (computer science)">strings</a> were introduced.<sup id="cite_ref-cpl_3rd-ch2-24_61-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-24-61"><span class="cite-bracket">[</span>55<span class="cite-bracket">]</span></a></sup> The <a href="US_Department_of_Defense" class="mw-redirect" title="US Department of Defense">US Department of Defense</a> influenced COBOL's development, with <a href="Grace_Hopper" title="Grace Hopper">Grace Hopper</a> being a major contributor. The statements were English-like and verbose. The goal was to design a language so managers could read the programs. However, the lack of structured statements hindered this goal.<sup id="cite_ref-cpl_3rd-ch2-25_62-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-25-62"><span class="cite-bracket">[</span>56<span class="cite-bracket">]</span></a></sup>
</p><p>COBOL's development was tightly controlled, so dialects did not emerge to require ANSI standards. As a consequence, it was not changed for 15 years until 1974. The 1990s version did make consequential changes, like <a href="Object-oriented_programming" title="Object-oriented programming">object-oriented programming</a>.<sup id="cite_ref-cpl_3rd-ch2-25_62-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-25-62"><span class="cite-bracket">[</span>56<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Algol">Algol</h4></div>
<p><a href="ALGOL" title="ALGOL">ALGOL</a> (1960) stands for "ALGOrithmic Language". It had a profound influence on programming language design.<sup id="cite_ref-cpl_3rd-ch2-19_63-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-19-63"><span class="cite-bracket">[</span>57<span class="cite-bracket">]</span></a></sup> Emerging from a committee of European and American programming language experts, it used standard <a href="Mathematical_notation" title="Mathematical notation">mathematical notation</a> and had a readable, structured design. Algol was first to define its syntax using the <a href="Backus%E2%80%93Naur_form" title="Backus–Naur form">Backus–Naur form</a>.<sup id="cite_ref-cpl_3rd-ch2-19_63-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-19-63"><span class="cite-bracket">[</span>57<span class="cite-bracket">]</span></a></sup> This led to <a href="Syntax-directed_translation" title="Syntax-directed translation">syntax-directed</a> compilers. It added features like:
</p>
<ul><li><a href="Block_(programming)" title="Block (programming)">block structure</a>, where variables were local to their block.</li>
<li>arrays with variable bounds.</li>
<li><a href="For_loop" title="For loop">"for" loops</a>.</li>
<li><a href="Function_(computer_programming)" title="Function (computer programming)">functions</a>.</li>
<li><a href="Recursion_(computer_science)" title="Recursion (computer science)">recursion</a>.<sup id="cite_ref-cpl_3rd-ch2-19_63-2" class="reference"><a href="#cite_note-cpl_3rd-ch2-19-63"><span class="cite-bracket">[</span>57<span class="cite-bracket">]</span></a></sup></li></ul>
<p>Algol's direct descendants include <a href="Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>, <a href="Modula-2" title="Modula-2">Modula-2</a>, <a href="Ada_(programming_language)" title="Ada (programming language)">Ada</a>, <a href="Delphi_(software)" title="Delphi (software)">Delphi</a> and <a href="Oberon_(programming_language)" title="Oberon (programming language)">Oberon</a> on one branch. On another branch the descendants include <a href="C_(programming_language)" title="C (programming language)">C</a>, <a href="C%2B%2B" title="C++">C++</a> and <a href="Java_(programming_language)" title="Java (programming language)">Java</a>.<sup id="cite_ref-cpl_3rd-ch2-19_63-3" class="reference"><a href="#cite_note-cpl_3rd-ch2-19-63"><span class="cite-bracket">[</span>57<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Basic">Basic</h4></div>
<p><a href="BASIC" title="BASIC">BASIC</a> (1964) stands for "Beginner's All-Purpose Symbolic Instruction Code". It was developed at <a href="Dartmouth_College" title="Dartmouth College">Dartmouth College</a> for all of their students to learn.<sup id="cite_ref-cpl_3rd-ch2-30_10-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-30-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> If a student did not go on to a more powerful language, the student would still remember Basic.<sup id="cite_ref-cpl_3rd-ch2-30_10-2" class="reference"><a href="#cite_note-cpl_3rd-ch2-30-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> A Basic interpreter was installed in the <a href="Microcomputers" class="mw-redirect" title="Microcomputers">microcomputers</a> manufactured in the late 1970s. As the microcomputer industry grew, so did the language.<sup id="cite_ref-cpl_3rd-ch2-30_10-3" class="reference"><a href="#cite_note-cpl_3rd-ch2-30-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
</p><p>Basic pioneered the <a href="Read%E2%80%93eval%E2%80%93print_loop" title="Read–eval–print loop">interactive session</a>.<sup id="cite_ref-cpl_3rd-ch2-30_10-4" class="reference"><a href="#cite_note-cpl_3rd-ch2-30-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> It offered <a href="Operating_system" title="Operating system">operating system</a> commands within its environment:
</p>
<ul><li>The 'new' command created an empty slate.</li>
<li>Statements evaluated immediately.</li>
<li>Statements could be programmed by preceding them with line numbers.<sup id="cite_ref-64" class="reference"><a href="#cite_note-64"><span class="cite-bracket">[</span>g<span class="cite-bracket">]</span></a></sup></li>
<li>The 'list' command displayed the program.</li>
<li>The 'run' command executed the program.</li></ul>
<p>However, the Basic syntax was too simple for large programs.<sup id="cite_ref-cpl_3rd-ch2-30_10-5" class="reference"><a href="#cite_note-cpl_3rd-ch2-30-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> Recent dialects added structure and object-oriented extensions. <a href="Microsoft" title="Microsoft">Microsoft</a>'s <a href="Visual_Basic" title="Visual Basic">Visual Basic</a> is still widely used and produces a <a href="Graphical_user_interface" title="Graphical user interface">graphical user interface</a>.<sup id="cite_ref-cpl_3rd-ch2-31_9-2" class="reference"><a href="#cite_note-cpl_3rd-ch2-31-9"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="C">C</h4></div>
<p><a href="C_programming_language" class="mw-redirect" title="C programming language">C programming language</a> (1973) got its name because the language <a href="BCPL" title="BCPL">BCPL</a> was replaced with <a href="B_(programming_language)" title="B (programming language)">B</a>, and <a href="AT%26T_Bell_Labs" class="mw-redirect" title="AT&amp;T Bell Labs">AT&amp;T Bell Labs</a> called the next version "C". Its purpose was to write the <a href="UNIX" class="mw-redirect" title="UNIX">UNIX</a> <a href="Operating_system" title="Operating system">operating system</a>.<sup id="cite_ref-cpl_3rd-ch2-37_55-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-37-55"><span class="cite-bracket">[</span>50<span class="cite-bracket">]</span></a></sup> C is a relatively small language, making it easy to write compilers. Its growth mirrored the hardware growth in the 1980s.<sup id="cite_ref-cpl_3rd-ch2-37_55-2" class="reference"><a href="#cite_note-cpl_3rd-ch2-37-55"><span class="cite-bracket">[</span>50<span class="cite-bracket">]</span></a></sup> Its growth also was because it has the facilities of <a href="Assembly_language" title="Assembly language">assembly language</a>, but it uses a <a href="High-level_programming_language" title="High-level programming language">high-level syntax</a>. It added advanced features like:
</p>
<ul><li><a href="Inline_assembler" title="Inline assembler">inline assembler</a>.</li>
<li>arithmetic on pointers.</li>
<li>pointers to functions.</li>
<li>bit operations.</li>
<li>freely combining complex <a href="Operators_in_C_and_C%2B%2B" title="Operators in C and C++">operators</a>.<sup id="cite_ref-cpl_3rd-ch2-37_55-3" class="reference"><a href="#cite_note-cpl_3rd-ch2-37-55"><span class="cite-bracket">[</span>50<span class="cite-bracket">]</span></a></sup></li></ul>

<p><i>C</i> allows the programmer to control which region of memory data is to be stored. <a href="Global_variable" title="Global variable">Global variables</a> and <a href="Static_variable" title="Static variable">static variables</a> require the fewest <a href="Clock_cycle" class="mw-redirect" title="Clock cycle">clock cycles</a> to store. The <a href="Call_stack" title="Call stack">stack</a> is automatically used for the standard variable <a href="Declaration_(computer_programming)" title="Declaration (computer programming)">declarations</a>. <a href="Manual_memory_management" title="Manual memory management">Heap</a> memory is returned to a <a href="Pointer_variable" class="mw-redirect" title="Pointer variable">pointer variable</a> from the <a href="C_dynamic_memory_allocation" title="C dynamic memory allocation"><code>malloc()</code></a> function.
</p>
<ul><li>The <i>global and static data</i> region is located just above the <i>program</i> region. (The program region is technically called the <i>text</i> region. It is where machine instructions are stored.)</li></ul>
<dl><dd><ul><li>The global and static data region is technically two regions.<sup id="cite_ref-geeksforgeeks_65-0" class="reference"><a href="#cite_note-geeksforgeeks-65"><span class="cite-bracket">[</span>58<span class="cite-bracket">]</span></a></sup> One region is called the <i>initialized <a href="Data_segment" title="Data segment">data segment</a></i>, where variables declared with default values are stored. The other region is called the <i><a href=".bss" title=".bss">block started by segment</a></i>, where variables declared without default values are stored.</li>
<li>Variables stored in the <i>global and static data</i> region have their <a href="Memory_address" title="Memory address">addresses</a> set at compile time. They retain their values throughout the life of the process.</li></ul></dd></dl>
<dl><dd><ul><li>The global and static region stores the <i>global variables</i> that are declared on top of (outside) the <code>main()</code> function.<sup id="cite_ref-cpl-ch1-p31_66-0" class="reference"><a href="#cite_note-cpl-ch1-p31-66"><span class="cite-bracket">[</span>59<span class="cite-bracket">]</span></a></sup> Global variables are visible to <code>main()</code> and every other function in the source code.</li></ul></dd></dl>
<dl><dd>On the other hand, variable declarations inside of <code>main()</code>, other functions, or within <code>{</code> <code>}</code> <a href="Block_(programming)" title="Block (programming)">block delimiters</a> are <i>local variables</i>. Local variables also include <i><a href="Formal_parameter" class="mw-redirect" title="Formal parameter">formal parameter</a> variables</i>. Parameter variables are enclosed within the parenthesis of a function definition.<sup id="cite_ref-cpl_3rd-ch6-128_67-0" class="reference"><a href="#cite_note-cpl_3rd-ch6-128-67"><span class="cite-bracket">[</span>60<span class="cite-bracket">]</span></a></sup> Parameters provide an <a href="Interface_(computing)" title="Interface (computing)">interface</a> to the function.</dd></dl>
<dl><dd><ul><li><i>Local variables</i> declared using the <code>static</code> prefix are also stored in the <i>global and static data</i> region.<sup id="cite_ref-geeksforgeeks_65-1" class="reference"><a href="#cite_note-geeksforgeeks-65"><span class="cite-bracket">[</span>58<span class="cite-bracket">]</span></a></sup> Unlike global variables, static variables are only visible within the function or block. Static variables always retain their value. An example usage would be the function <code>int increment_counter(){static int counter = 0; counter++; return counter;}</code><sup id="cite_ref-68" class="reference"><a href="#cite_note-68"><span class="cite-bracket">[</span>h<span class="cite-bracket">]</span></a></sup></li></ul></dd></dl>
<ul><li>The <a href="Call_stack" title="Call stack">stack</a> region is a contiguous block of memory located near the top memory address.<sup id="cite_ref-lpi-ch6-p121_69-0" class="reference"><a href="#cite_note-lpi-ch6-p121-69"><span class="cite-bracket">[</span>61<span class="cite-bracket">]</span></a></sup> Variables placed in the stack are populated from top to bottom.<sup id="cite_ref-70" class="reference"><a href="#cite_note-70"><span class="cite-bracket">[</span>i<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-lpi-ch6-p121_69-1" class="reference"><a href="#cite_note-lpi-ch6-p121-69"><span class="cite-bracket">[</span>61<span class="cite-bracket">]</span></a></sup> A <a href="Call_stack#STACK-POINTER" title="Call stack">stack pointer</a> is a special-purpose <a href="Processor_register" title="Processor register">register</a> that keeps track of the last memory address populated.<sup id="cite_ref-lpi-ch6-p121_69-2" class="reference"><a href="#cite_note-lpi-ch6-p121-69"><span class="cite-bracket">[</span>61<span class="cite-bracket">]</span></a></sup> Variables are placed into the stack via the <i>assembly language</i> PUSH instruction. Therefore, the addresses of these variables are set during <a href="Runtime_(program_lifecycle_phase)" class="mw-redirect" title="Runtime (program lifecycle phase)">runtime</a>. The method for stack variables to lose their <a href="Scope_(computer_science)" title="Scope (computer science)">scope</a> is via the POP instruction.</li></ul>
<dl><dd><ul><li><i>Local variables</i> declared without the <code>static</code> prefix, including formal parameter variables,<sup id="cite_ref-lpi-ch6-p122_71-0" class="reference"><a href="#cite_note-lpi-ch6-p122-71"><span class="cite-bracket">[</span>62<span class="cite-bracket">]</span></a></sup> are called <i>automatic variables</i><sup id="cite_ref-cpl-ch1-p31_66-1" class="reference"><a href="#cite_note-cpl-ch1-p31-66"><span class="cite-bracket">[</span>59<span class="cite-bracket">]</span></a></sup> and are stored in the stack.<sup id="cite_ref-geeksforgeeks_65-2" class="reference"><a href="#cite_note-geeksforgeeks-65"><span class="cite-bracket">[</span>58<span class="cite-bracket">]</span></a></sup> They are visible inside the function or block and lose their scope upon exiting the function or block.</li></ul></dd></dl>
<ul><li>The <a href="Manual_memory_management" title="Manual memory management">heap</a> region is located below the stack.<sup id="cite_ref-geeksforgeeks_65-3" class="reference"><a href="#cite_note-geeksforgeeks-65"><span class="cite-bracket">[</span>58<span class="cite-bracket">]</span></a></sup> It is populated from the bottom to the top. The <a href="Operating_system" title="Operating system">operating system</a> manages the heap using a <i>heap pointer</i> and a list of allocated memory blocks.<sup id="cite_ref-cpl-ch1-p185_72-0" class="reference"><a href="#cite_note-cpl-ch1-p185-72"><span class="cite-bracket">[</span>63<span class="cite-bracket">]</span></a></sup> Like the stack, the addresses of heap variables are set during runtime. An <a href="Out_of_memory" title="Out of memory">out of memory</a> error occurs when the heap pointer and the stack pointer meet.</li></ul>
<dl><dd><ul><li><i>C</i> provides the <code>malloc()</code> library function to <a href="C_dynamic_memory_allocation" title="C dynamic memory allocation">allocate</a> heap memory.<sup id="cite_ref-73" class="reference"><a href="#cite_note-73"><span class="cite-bracket">[</span>j<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-cpl-ch8-p187_74-0" class="reference"><a href="#cite_note-cpl-ch8-p187-74"><span class="cite-bracket">[</span>64<span class="cite-bracket">]</span></a></sup> Populating the heap with data is an additional copy function.<sup id="cite_ref-75" class="reference"><a href="#cite_note-75"><span class="cite-bracket">[</span>k<span class="cite-bracket">]</span></a></sup> Variables stored in the heap are economically passed to functions using pointers. Without pointers, the entire block of data would have to be passed to the function via the stack.</li></ul></dd></dl>
<div class="mw-heading mw-heading4"><h4 id="C++">C++</h4></div>
<p>In the 1970s, <a href="Software_engineers" class="mw-redirect" title="Software engineers">software engineers</a> needed language support to break large projects down into <a href="Modular_programming" title="Modular programming">modules</a>.<sup id="cite_ref-cpl_3rd-ch2-38_76-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-38-76"><span class="cite-bracket">[</span>65<span class="cite-bracket">]</span></a></sup> One obvious feature was to decompose large projects <i>physically</i> into separate <a href="Computer_file" title="Computer file">files</a>. A less obvious feature was to decompose large projects <i>logically</i> into <a href="Abstract_data_type" title="Abstract data type">abstract data types</a>.<sup id="cite_ref-cpl_3rd-ch2-38_76-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-38-76"><span class="cite-bracket">[</span>65<span class="cite-bracket">]</span></a></sup> At the time, languages supported <a href="Type_system" title="Type system">concrete (scalar)</a> datatypes like <a href="Integer" title="Integer">integer</a> numbers, <a href="Floating-point" class="mw-redirect" title="Floating-point">floating-point</a> numbers, and <a href="String_(computer_science)" title="String (computer science)">strings</a> of <a href="Character_(computing)" title="Character (computing)">characters</a>. Abstract datatypes are <a href="Record_(computer_science)" title="Record (computer science)">structures</a> of concrete datatypes, with a new name assigned. For example, a <a href="List_(abstract_data_type)" title="List (abstract data type)">list</a> of integers could be called <code>integer_list</code>.
</p><p>In object-oriented jargon, abstract datatypes are called <a href="Class_(computer_programming)" title="Class (computer programming)">classes</a>. However, a <i>class</i> is only a definition; no memory is allocated. When memory is allocated to a class and <a href="Name_binding" title="Name binding">bound</a> to an <a href="Identifier" title="Identifier">identifier</a>, it is called an <a href="Object_(computer_science)" title="Object (computer science)">object</a>.<sup id="cite_ref-cpl_3rd-ch8-193_77-0" class="reference"><a href="#cite_note-cpl_3rd-ch8-193-77"><span class="cite-bracket">[</span>66<span class="cite-bracket">]</span></a></sup>
</p><p><a href="Object-oriented_programming" title="Object-oriented programming">Object-oriented imperative languages</a> developed by combining the need for classes and the need for safe <a href="Functional_programming" title="Functional programming">functional programming</a>.<sup id="cite_ref-cpl_3rd-ch2-39_78-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-39-78"><span class="cite-bracket">[</span>67<span class="cite-bracket">]</span></a></sup> A function, in an object-oriented language, is assigned to a class. An assigned function is then referred to as a <a href="Method_(computer_programming)" title="Method (computer programming)">method</a>, <a href="Member_function" class="mw-redirect" title="Member function">member function</a>, or <a href="Operation_(mathematics)" title="Operation (mathematics)">operation</a>. <i>Object-oriented programming</i> is executing <i>operations</i> on <i>objects</i>.<sup id="cite_ref-cpl_3rd-ch2-35_79-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-35-79"><span class="cite-bracket">[</span>68<span class="cite-bracket">]</span></a></sup>
</p><p><i>Object-oriented languages</i> support a syntax to model <a href="Subset" title="Subset">subset/superset</a> relationships. In <a href="Set_theory" title="Set theory">set theory</a>, an <a href="Element_(mathematics)" title="Element (mathematics)">element</a> of a subset inherits all the attributes contained in the superset. For example, a student is a person. Therefore, the set of students is a subset of the set of persons. As a result, students inherit all the attributes common to all persons. Additionally, students have unique attributes that other people do not have. <i>Object-oriented languages</i> model <i>subset/superset</i> relationships using <a href="Inheritance_(object-oriented_programming)" title="Inheritance (object-oriented programming)">inheritance</a>.<sup id="cite_ref-cpl_3rd-ch8-192_80-0" class="reference"><a href="#cite_note-cpl_3rd-ch8-192-80"><span class="cite-bracket">[</span>69<span class="cite-bracket">]</span></a></sup> <i>Object-oriented programming</i> became the dominant language paradigm by the late 1990s.<sup id="cite_ref-cpl_3rd-ch2-38_76-2" class="reference"><a href="#cite_note-cpl_3rd-ch2-38-76"><span class="cite-bracket">[</span>65<span class="cite-bracket">]</span></a></sup>
</p><p><a href="C%2B%2B" title="C++">C++</a> (1985) was originally called "C with Classes".<sup id="cite_ref-stroustrup-notes-22_81-0" class="reference"><a href="#cite_note-stroustrup-notes-22-81"><span class="cite-bracket">[</span>70<span class="cite-bracket">]</span></a></sup> It was designed to expand <a href="C_(programming_language)" title="C (programming language)">C's</a> capabilities by adding the object-oriented facilities of the language <a href="Simula" title="Simula">Simula</a>.<sup id="cite_ref-stroustrup-notes-21_82-0" class="reference"><a href="#cite_note-stroustrup-notes-21-82"><span class="cite-bracket">[</span>71<span class="cite-bracket">]</span></a></sup>
</p><p>An object-oriented module is composed of two files. The definitions file is called the <a href="Header_file" class="mw-redirect" title="Header file">header file</a>. Here is a C++ <i>header file</i> for the <i>GRADE class</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="c1">// grade.h</span>
<span class="c1">// -------</span>

<span class="c1">// Used to allow multiple source files to include</span>
<span class="c1">// this header file without duplication errors.</span>
<span class="c1">// ----------------------------------------------</span>
<span class="cp">#ifndef GRADE_H</span>
<span class="cp">#define GRADE_H</span>

<span class="k">class</span><span class="w"> </span><span class="nc">GRADE</span><span class="w"> </span><span class="p">{</span>
<span class="k">public</span><span class="o">:</span>
<span class="w"> </span><span class="c1">// This is the constructor operation.</span>
<span class="w"> </span><span class="c1">// ----------------------------------</span>
<span class="w"> </span><span class="n">GRADE</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">);</span>

<span class="w"> </span><span class="c1">// This is a class variable.</span>
<span class="w"> </span><span class="c1">// -------------------------</span>
<span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="p">;</span>

<span class="w"> </span><span class="c1">// This is a member operation.</span>
<span class="w"> </span><span class="c1">// ---------------------------</span>
<span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">grade_numeric</span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">);</span>

<span class="w"> </span><span class="c1">// This is a class variable.</span>
<span class="w"> </span><span class="c1">// -------------------------</span>
<span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">numeric</span><span class="p">;</span>
<span class="p">};</span>
<span class="cp">#endif</span>
</pre></div>
<p>A <a href="Constructor_(object-oriented_programming)" title="Constructor (object-oriented programming)">constructor</a> operation is a function with the same name as the class name.<sup id="cite_ref-stroustrup-ch2-49_83-0" class="reference"><a href="#cite_note-stroustrup-ch2-49-83"><span class="cite-bracket">[</span>72<span class="cite-bracket">]</span></a></sup> It is executed when the calling operation executes the <code><a href="New_and_delete_(C%2B%2B)" title="New and delete (C++)">new</a></code> statement.
</p><p>A module's other file is the <a href="Source_file" class="mw-redirect" title="Source file">source file</a>. Here is a C++ source file for the <i>GRADE class</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="c1">// grade.cpp</span>
<span class="c1">// ---------</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"grade.h"</span>

<span class="n">GRADE</span><span class="o">::</span><span class="n">GRADE</span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="c1">// Reference the object using the keyword 'this'.</span>
<span class="w"> </span><span class="c1">// ----------------------------------------------</span>
<span class="w"> </span><span class="k">this</span><span class="o">-&gt;</span><span class="n">letter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">letter</span><span class="p">;</span>

<span class="w"> </span><span class="c1">// This is Temporal Cohesion</span>
<span class="w"> </span><span class="c1">// -------------------------</span>
<span class="w"> </span><span class="k">this</span><span class="o">-&gt;</span><span class="n">numeric</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grade_numeric</span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">);</span>
<span class="p">}</span>

<span class="kt">int</span><span class="w"> </span><span class="n">GRADE</span><span class="o">::</span><span class="n">grade_numeric</span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'A'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'B'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'b'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'C'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'c'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'D'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'d'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'F'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'f'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Here is a C++ <i>header file</i> for the <i>PERSON class</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="c1">// person.h</span>
<span class="c1">// --------</span>
<span class="cp">#ifndef PERSON_H</span>
<span class="cp">#define PERSON_H</span>

<span class="k">class</span><span class="w"> </span><span class="nc">PERSON</span><span class="w"> </span><span class="p">{</span>
<span class="k">public</span><span class="o">:</span>
<span class="w"> </span><span class="n">PERSON</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
<span class="p">};</span>
<span class="cp">#endif</span>
</pre></div>
<p>Here is a C++ <i>source file</i> for the <i>PERSON class</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="c1">// person.cpp</span>
<span class="c1">// ----------</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"person.h"</span>

<span class="n">PERSON</span><span class="o">::</span><span class="n">PERSON</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="k">this</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Here is a C++ <i>header file</i> for the <i>STUDENT class</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="c1">// student.h</span>
<span class="c1">// ---------</span>
<span class="cp">#ifndef STUDENT_H</span>
<span class="cp">#define STUDENT_H</span>

<span class="cp">#include</span><span class="w"> </span><span class="cpf">"person.h"</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"grade.h"</span>

<span class="c1">// A STUDENT is a subset of PERSON.</span>
<span class="c1">// --------------------------------</span>
<span class="k">class</span><span class="w"> </span><span class="nc">STUDENT</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="k">public</span><span class="w"> </span><span class="n">PERSON</span><span class="p">{</span>
<span class="k">public</span><span class="o">:</span>
<span class="w"> </span><span class="n">STUDENT</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="n">GRADE</span><span class="w"> </span><span class="o">*</span><span class="n">grade</span><span class="p">;</span>
<span class="p">};</span>
<span class="cp">#endif</span>
</pre></div>
<p>Here is a C++ <i>source file</i> for the <i>STUDENT class</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="c1">// student.cpp</span>
<span class="c1">// -----------</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"student.h"</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"person.h"</span>

<span class="n">STUDENT</span><span class="o">::</span><span class="n">STUDENT</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">)</span><span class="o">:</span>
<span class="w"> </span><span class="c1">// Execute the constructor of the PERSON superclass.</span>
<span class="w"> </span><span class="c1">// -------------------------------------------------</span>
<span class="w"> </span><span class="n">PERSON</span><span class="p">(</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="c1">// Nothing else to do.</span>
<span class="w"> </span><span class="c1">// -------------------</span>
<span class="p">}</span>
</pre></div>
<p>Here is a driver program for demonstration:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="c1">// student_dvr.cpp</span>
<span class="c1">// ---------------</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;iostream&gt;</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"student.h"</span>

<span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="n">STUDENT</span><span class="w"> </span><span class="o">*</span><span class="n">student</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">new</span><span class="w"> </span><span class="n">STUDENT</span><span class="p">(</span><span class="w"> </span><span class="s">"The Student"</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="n">student</span><span class="o">-&gt;</span><span class="n">grade</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">new</span><span class="w"> </span><span class="n">GRADE</span><span class="p">(</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="p">);</span>

<span class="w"> </span><span class="n">std</span><span class="o">::</span><span class="n">cout</span>
<span class="w"> </span><span class="c1">// Notice student inherits PERSON's name</span>
<span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="n">student</span><span class="o">-&gt;</span><span class="n">name</span>
<span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="s">": Numeric grade = "</span>
<span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="n">student</span><span class="o">-&gt;</span><span class="n">grade</span><span class="o">-&gt;</span><span class="n">numeric</span>
<span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">;</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Here is a <a href="Makefile" class="mw-redirect" title="Makefile">makefile</a> to compile everything:
</p>
<div class="mw-highlight mw-highlight-lang-make mw-content-ltr" dir="ltr"><pre><span class="c"># makefile</span>
<span class="c"># --------</span>
<span class="nf">all</span><span class="o">:</span><span class="w"> </span><span class="n">student_dvr</span>

<span class="nf">clean</span><span class="o">:</span>
<span class="w"> </span>rm<span class="w"> </span>student_dvr<span class="w"> </span>*.o

<span class="nf">student_dvr</span><span class="o">:</span><span class="w"> </span><span class="n">student_dvr</span>.<span class="n">cpp</span> <span class="n">grade</span>.<span class="n">o</span> <span class="n">student</span>.<span class="n">o</span> <span class="n">person</span>.<span class="n">o</span>
<span class="w"> </span>c++<span class="w"> </span>student_dvr.cpp<span class="w"> </span>grade.o<span class="w"> </span>student.o<span class="w"> </span>person.o<span class="w"> </span>-o<span class="w"> </span>student_dvr

<span class="nf">grade.o</span><span class="o">:</span><span class="w"> </span><span class="n">grade</span>.<span class="n">cpp</span> <span class="n">grade</span>.<span class="n">h</span>
<span class="w"> </span>c++<span class="w"> </span>-c<span class="w"> </span>grade.cpp

<span class="nf">student.o</span><span class="o">:</span><span class="w"> </span><span class="n">student</span>.<span class="n">cpp</span> <span class="n">student</span>.<span class="n">h</span>
<span class="w"> </span>c++<span class="w"> </span>-c<span class="w"> </span>student.cpp

<span class="nf">person.o</span><span class="o">:</span><span class="w"> </span><span class="n">person</span>.<span class="n">cpp</span> <span class="n">person</span>.<span class="n">h</span>
<span class="w"> </span>c++<span class="w"> </span>-c<span class="w"> </span>person.cpp
</pre></div>
<div class="mw-heading mw-heading3"><h3 id="Declarative_languages">Declarative languages</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Declarative_programming" title="Declarative programming">Declarative programming</a></div>
<p><i>Imperative languages</i> have one major criticism: assigning an expression to a <i>non-local</i> variable may produce an unintended <a href="Side_effect_(computer_science)" title="Side effect (computer science)">side effect</a>.<sup id="cite_ref-cpl_3rd-ch9-218_84-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-218-84"><span class="cite-bracket">[</span>73<span class="cite-bracket">]</span></a></sup> <a href="Declarative_language" class="mw-redirect" title="Declarative language">Declarative languages</a> generally omit the assignment statement and the control flow. They describe <i>what</i> computation should be performed and not <i>how</i> to compute it. Two broad categories of declarative languages are <a href="Functional_language" class="mw-redirect" title="Functional language">functional languages</a> and <a href="Logic_programming" title="Logic programming">logical languages</a>.
</p><p>The principle behind a <i>functional language</i> is to use <a href="Lambda_calculus" title="Lambda calculus">lambda calculus</a> as a guide for a well defined <a href="Semantics_(computer_science)" title="Semantics (computer science)">semantic</a>.<sup id="cite_ref-cpl_3rd-ch9-217_85-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-217-85"><span class="cite-bracket">[</span>74<span class="cite-bracket">]</span></a></sup> In mathematics, a function is a rule that maps elements from an <i>expression</i> to a range of <i>values</i>. Consider the function:
</p><p><code>times_10(x) = 10 * x</code>
</p><p>The <i>expression</i> <code>10 * x</code> is mapped by the function <code>times_10()</code> to a range of <i>values</i>. One <i>value</i> happens to be 20. This occurs when x is 2. So, the application of the function is mathematically written as:
</p><p><code>times_10(2) = 20</code>
</p><p>A <i>functional language</i> compiler will not store this value in a variable. Instead, it will <i>push</i> the value onto the computer's <a href="Call_stack" title="Call stack">stack</a> before setting the <a href="Program_counter" title="Program counter">program counter</a> back to the calling function. The calling function will then <i>pop</i> the value from the stack.<sup id="cite_ref-dsa-ch3-p103_86-0" class="reference"><a href="#cite_note-dsa-ch3-p103-86"><span class="cite-bracket">[</span>75<span class="cite-bracket">]</span></a></sup>
</p><p><i>Imperative languages</i> do support functions. Therefore, <i>functional programming</i> can be achieved in an imperative language, if the programmer uses discipline. However, a <i>functional language</i> will force this discipline onto the programmer through its syntax. Functional languages have a syntax tailored to emphasize the <i>what</i>.<sup id="cite_ref-cpl_3rd-ch9-230_87-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-230-87"><span class="cite-bracket">[</span>76<span class="cite-bracket">]</span></a></sup>
</p><p>A functional program is developed with a set of primitive functions followed by a single driver function.<sup id="cite_ref-cpl_3rd-ch9-218_84-1" class="reference"><a href="#cite_note-cpl_3rd-ch9-218-84"><span class="cite-bracket">[</span>73<span class="cite-bracket">]</span></a></sup> Consider the <a href="Snippet_(programming)" title="Snippet (programming)">snippet</a>:
</p><p><code>function max( a, b ){/* code omitted */}</code>
</p><p><code>function min( a, b ){/* code omitted */}</code>
</p><p><code>function range( a, b, c ) {</code>
</p>
<dl><dd><code>return max( a, max( b, c ) ) - min( a, min( b, c ) );</code></dd></dl>
<p><code>}</code>
</p><p>The primitives are <code>max()</code> and <code>min()</code>. The driver function is <code>range()</code>. Executing:
</p><p><code>put( range( 10, 4, 7) );</code> will output 6.
</p><p><i>Functional languages</i> are used in <a href="Computer_science" title="Computer science">computer science</a> research to explore new language features.<sup id="cite_ref-cpl_3rd-ch9-240_88-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-240-88"><span class="cite-bracket">[</span>77<span class="cite-bracket">]</span></a></sup> Moreover, their lack of side-effects have made them popular in <a href="Parallel_programming" class="mw-redirect" title="Parallel programming">parallel programming</a> and <a href="Concurrent_programming" class="mw-redirect" title="Concurrent programming">concurrent programming</a>.<sup id="cite_ref-cpl_3rd-ch9-241_89-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-241-89"><span class="cite-bracket">[</span>78<span class="cite-bracket">]</span></a></sup> However, application developers prefer the <a href="Object-oriented_programming" title="Object-oriented programming">object-oriented features</a> of <i>imperative languages</i>.<sup id="cite_ref-cpl_3rd-ch9-241_89-1" class="reference"><a href="#cite_note-cpl_3rd-ch9-241-89"><span class="cite-bracket">[</span>78<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Lisp">Lisp</h4></div>
<p><a href="Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a> (1958) stands for "LISt Processor".<sup id="cite_ref-ArtOfLisp_90-0" class="reference"><a href="#cite_note-ArtOfLisp-90"><span class="cite-bracket">[</span>79<span class="cite-bracket">]</span></a></sup> It is tailored to process <a href="List_(abstract_data_type)" title="List (abstract data type)">lists</a>. A full structure of the data is formed by building lists of lists. In memory, a <a href="Tree_data_structure" class="mw-redirect" title="Tree data structure">tree data structure</a> is built. Internally, the tree structure lends nicely for <a href="Recursion_(computer_science)" title="Recursion (computer science)">recursive</a> functions.<sup id="cite_ref-cpl_3rd-ch9-220_91-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-220-91"><span class="cite-bracket">[</span>80<span class="cite-bracket">]</span></a></sup> The syntax to build a tree is to enclose the space-separated <a href="Element_(mathematics)" title="Element (mathematics)">elements</a> within parenthesis. The following is a <a href="List" title="List">list</a> of three elements. The first two elements are themselves lists of two elements:
</p><p><code>((A B) (HELLO WORLD) 94)</code>
</p><p>Lisp has functions to extract and reconstruct elements.<sup id="cite_ref-cpl_3rd-ch9-221_92-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-221-92"><span class="cite-bracket">[</span>81<span class="cite-bracket">]</span></a></sup> The function <code>head()</code> returns a list containing the first element in the list. The function <code>tail()</code> returns a list containing everything but the first element. The function <code>cons()</code> returns a list that is the concatenation of other lists. Therefore, the following expression will return the list <code>x</code>:
</p><p><code>cons(head(x), tail(x))</code>
</p><p>One drawback of Lisp is when many functions are nested, the parentheses may look confusing.<sup id="cite_ref-cpl_3rd-ch9-230_87-1" class="reference"><a href="#cite_note-cpl_3rd-ch9-230-87"><span class="cite-bracket">[</span>76<span class="cite-bracket">]</span></a></sup> Modern Lisp <a href="Integrated_development_environment" title="Integrated development environment">environments</a> help ensure parenthesis match. As an aside, Lisp does support the <i>imperative language</i> operations of the assignment statement and goto loops.<sup id="cite_ref-cpl_3rd-ch9-229_93-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-229-93"><span class="cite-bracket">[</span>82<span class="cite-bracket">]</span></a></sup> Also, <i>Lisp</i> is not concerned with the <a href="Datatype" class="mw-redirect" title="Datatype">datatype</a> of the elements at compile time.<sup id="cite_ref-cpl_3rd-ch9-227_94-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-227-94"><span class="cite-bracket">[</span>83<span class="cite-bracket">]</span></a></sup> Instead, it assigns (and may reassign) the datatypes at <a href="Runtime_(program_lifecycle_phase)" class="mw-redirect" title="Runtime (program lifecycle phase)">runtime</a>. Assigning the datatype at runtime is called <a href="Name_binding#Binding_time" title="Name binding">dynamic binding</a>.<sup id="cite_ref-cpl_3rd-ch9-222_95-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-222-95"><span class="cite-bracket">[</span>84<span class="cite-bracket">]</span></a></sup> Whereas dynamic binding increases the language's flexibility, programming errors may linger until late in the <a href="Software_development_process" title="Software development process">software development process</a>.<sup id="cite_ref-cpl_3rd-ch9-222_95-1" class="reference"><a href="#cite_note-cpl_3rd-ch9-222-95"><span class="cite-bracket">[</span>84<span class="cite-bracket">]</span></a></sup>
</p><p>Writing large, reliable, and readable Lisp programs requires forethought. If properly planned, the program may be much shorter than an equivalent <i>imperative language</i> program.<sup id="cite_ref-cpl_3rd-ch9-230_87-2" class="reference"><a href="#cite_note-cpl_3rd-ch9-230-87"><span class="cite-bracket">[</span>76<span class="cite-bracket">]</span></a></sup> <i>Lisp</i> is widely used in <a href="Artificial_intelligence" title="Artificial intelligence">artificial intelligence</a>. However, its usage has been accepted only because it has <i>imperative language</i> operations, making unintended side-effects possible.<sup id="cite_ref-cpl_3rd-ch9-241_89-2" class="reference"><a href="#cite_note-cpl_3rd-ch9-241-89"><span class="cite-bracket">[</span>78<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="ML">ML</h4></div>
<p><a href="ML_(programming_language)" title="ML (programming language)">ML</a> (1973)<sup id="cite_ref-Gordon1996_96-0" class="reference"><a href="#cite_note-Gordon1996-96"><span class="cite-bracket">[</span>85<span class="cite-bracket">]</span></a></sup> stands for "Meta Language". ML checks to make sure only data of the same type are compared with one another.<sup id="cite_ref-cpl_3rd-ch9-233_97-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-233-97"><span class="cite-bracket">[</span>86<span class="cite-bracket">]</span></a></sup> For example, this function has one input parameter (an integer) and returns an integer:
</p>
<div class="mw-highlight mw-highlight-lang-sml mw-content-ltr" dir="ltr"><pre><span class="kr">fun</span> <span class="nf">times_10</span><span class="p">(</span><span class="n">n</span> <span class="p">:</span> <span class="n">int</span><span class="p">)</span> <span class="p">:</span> <span class="n">int</span> <span class="p">=</span> <span class="mi">10</span> <span class="n">*</span> <span class="n">n</span><span class="p">;</span>
</pre></div>
<p><i>ML</i> is not parenthesis-eccentric like <i>Lisp</i>. The following is an application of <code>times_10()</code>:
</p>
<pre>times_10 2
</pre>
<p>It returns "20&nbsp;: int". (Both the results and the datatype are returned.)
</p><p>Like <i>Lisp</i>, <i>ML</i> is tailored to process lists. Unlike <i>Lisp</i>, each element is the same datatype.<sup id="cite_ref-cpl_3rd-ch9-235_98-0" class="reference"><a href="#cite_note-cpl_3rd-ch9-235-98"><span class="cite-bracket">[</span>87<span class="cite-bracket">]</span></a></sup> Moreover, <i>ML</i> assigns the datatype of an element at <a href="Compile_time" title="Compile time">compile time</a>. Assigning the datatype at compile time is called <a href="Name_binding#Binding_time" title="Name binding">static binding</a>. Static binding increases reliability because the compiler checks the context of variables before they are used.<sup id="cite_ref-cpl_3rd-ch3-55_99-0" class="reference"><a href="#cite_note-cpl_3rd-ch3-55-99"><span class="cite-bracket">[</span>88<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Prolog">Prolog</h4></div>
<p><a href="Prolog" title="Prolog">Prolog</a> (1972) stands for "PROgramming in LOGic". It is a <a href="Logic_programming" title="Logic programming">logic programming</a> language, based on formal <a href="Logic" title="Logic">logic</a>. The language was developed by <a href="Alain_Colmerauer" title="Alain Colmerauer">Alain Colmerauer</a> and Philippe Roussel in Marseille, France. It is an implementation of <a href="SLD_resolution" title="SLD resolution">Selective Linear Definite clause resolution</a>, pioneered by <a href="Robert_Kowalski" title="Robert Kowalski">Robert Kowalski</a> and others at the <a href="University_of_Edinburgh" title="University of Edinburgh">University of Edinburgh</a>.<sup id="cite_ref-100" class="reference"><a href="#cite_note-100"><span class="cite-bracket">[</span>89<span class="cite-bracket">]</span></a></sup>
</p><p>The building blocks of a Prolog program are <i>facts</i> and <i>rules</i>. Here is a simple example:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nf">cat</span><span class="p">(</span><span class="s s-Atom">tom</span><span class="p">).</span> <span class="c1">% tom is a cat</span>
<span class="nf">mouse</span><span class="p">(</span><span class="s s-Atom">jerry</span><span class="p">).</span> <span class="c1">% jerry is a mouse</span>

<span class="nf">animal</span><span class="p">(</span><span class="nv">X</span><span class="p">)</span> <span class="p">:-</span> <span class="nf">cat</span><span class="p">(</span><span class="nv">X</span><span class="p">).</span> <span class="c1">% each cat is an animal</span>
<span class="nf">animal</span><span class="p">(</span><span class="nv">X</span><span class="p">)</span> <span class="p">:-</span> <span class="nf">mouse</span><span class="p">(</span><span class="nv">X</span><span class="p">).</span> <span class="c1">% each mouse is an animal</span>

<span class="nf">big</span><span class="p">(</span><span class="nv">X</span><span class="p">)</span> <span class="p">:-</span> <span class="nf">cat</span><span class="p">(</span><span class="nv">X</span><span class="p">).</span> <span class="c1">% each cat is big</span>
<span class="nf">small</span><span class="p">(</span><span class="nv">X</span><span class="p">)</span> <span class="p">:-</span> <span class="nf">mouse</span><span class="p">(</span><span class="nv">X</span><span class="p">).</span> <span class="c1">% each mouse is small</span>

<span class="nf">eat</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span><span class="nv">Y</span><span class="p">)</span> <span class="p">:-</span> <span class="nf">mouse</span><span class="p">(</span><span class="nv">X</span><span class="p">),</span> <span class="nf">cheese</span><span class="p">(</span><span class="nv">Y</span><span class="p">).</span> <span class="c1">% each mouse eats each cheese</span>
<span class="nf">eat</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span><span class="nv">Y</span><span class="p">)</span> <span class="p">:-</span> <span class="nf">big</span><span class="p">(</span><span class="nv">X</span><span class="p">),</span> <span class="nf">small</span><span class="p">(</span><span class="nv">Y</span><span class="p">).</span> <span class="c1">% each big animal eats each small animal</span>
</pre></div>
<p>After all the facts and rules are entered, then a question can be asked:
</p>
<dl><dd>Will Tom eat Jerry?</dd></dl>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="s s-Atom">?-</span> <span class="nf">eat</span><span class="p">(</span><span class="s s-Atom">tom</span><span class="p">,</span><span class="s s-Atom">jerry</span><span class="p">).</span>
<span class="s s-Atom">true</span>
</pre></div>
<p>The following example shows how Prolog will convert a letter grade to its numeric value:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nf">numeric_grade</span><span class="p">(</span><span class="s s-Atom">'A'</span><span class="p">,</span> <span class="mi">4</span><span class="p">).</span>
<span class="nf">numeric_grade</span><span class="p">(</span><span class="s s-Atom">'B'</span><span class="p">,</span> <span class="mi">3</span><span class="p">).</span>
<span class="nf">numeric_grade</span><span class="p">(</span><span class="s s-Atom">'C'</span><span class="p">,</span> <span class="mi">2</span><span class="p">).</span>
<span class="nf">numeric_grade</span><span class="p">(</span><span class="s s-Atom">'D'</span><span class="p">,</span> <span class="mi">1</span><span class="p">).</span>
<span class="nf">numeric_grade</span><span class="p">(</span><span class="s s-Atom">'F'</span><span class="p">,</span> <span class="mi">0</span><span class="p">).</span>
<span class="nf">numeric_grade</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="p">:-</span> <span class="o">not</span> <span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">'A'</span><span class="p">,</span> <span class="o">not</span> <span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">'B'</span><span class="p">,</span> <span class="o">not</span> <span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">'C'</span><span class="p">,</span> <span class="o">not</span> <span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">'D'</span><span class="p">,</span> <span class="o">not</span> <span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">'F'</span><span class="p">.</span>
<span class="nf">grade</span><span class="p">(</span><span class="s s-Atom">'The Student'</span><span class="p">,</span> <span class="s s-Atom">'A'</span><span class="p">).</span>
</pre></div>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="s s-Atom">?-</span> <span class="nf">grade</span><span class="p">(</span><span class="s s-Atom">'The Student'</span><span class="p">,</span> <span class="nv">X</span><span class="p">),</span> <span class="nf">numeric_grade</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span> <span class="nv">Y</span><span class="p">).</span>
<span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">'A'</span><span class="p">,</span>
<span class="nv">Y</span> <span class="o">=</span> <span class="mi">4</span>
</pre></div>
<p>Here is a comprehensive example:<sup id="cite_ref-Logical_English_101-0" class="reference"><a href="#cite_note-Logical_English-101"><span class="cite-bracket">[</span>90<span class="cite-bracket">]</span></a></sup>
</p><p>1) All dragons billow fire, or equivalently, a thing billows fire if the thing is a dragon:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nf">billows_fire</span><span class="p">(</span><span class="nv">X</span><span class="p">)</span> <span class="p">:-</span>
<span class="nf">is_a_dragon</span><span class="p">(</span><span class="nv">X</span><span class="p">).</span>
</pre></div>
<p>2) A creature billows fire if one of its parents billows fire:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nf">billows_fire</span><span class="p">(</span><span class="nv">X</span><span class="p">)</span> <span class="p">:-</span>
<span class="nf">is_a_creature</span><span class="p">(</span><span class="nv">X</span><span class="p">),</span>
<span class="nf">is_a_parent_of</span><span class="p">(</span><span class="nv">Y</span><span class="p">,</span><span class="nv">X</span><span class="p">),</span>
<span class="nf">billows_fire</span><span class="p">(</span><span class="nv">Y</span><span class="p">).</span>
</pre></div>
<p>3) A thing X is a parent of a thing Y if X is the mother of Y or X is the father of Y:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nf">is_a_parent_of</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span> <span class="nv">Y</span><span class="p">):-</span> <span class="nf">is_the_mother_of</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span> <span class="nv">Y</span><span class="p">).</span>
<span class="nf">is_a_parent_of</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span> <span class="nv">Y</span><span class="p">):-</span> <span class="nf">is_the_father_of</span><span class="p">(</span><span class="nv">X</span><span class="p">,</span> <span class="nv">Y</span><span class="p">).</span>
</pre></div>
<p>4) A thing is a creature if the thing is a dragon:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nf">is_a_creature</span><span class="p">(</span><span class="nv">X</span><span class="p">)</span> <span class="p">:-</span>
<span class="nf">is_a_dragon</span><span class="p">(</span><span class="nv">X</span><span class="p">).</span>
</pre></div>
<p>5) Norberta is a dragon, and Puff is a creature. Norberta is the mother of Puff.
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nf">is_a_dragon</span><span class="p">(</span><span class="s s-Atom">norberta</span><span class="p">).</span>
<span class="nf">is_a_creature</span><span class="p">(</span><span class="s s-Atom">puff</span><span class="p">).</span>
<span class="nf">is_the_mother_of</span><span class="p">(</span><span class="s s-Atom">norberta</span><span class="p">,</span> <span class="s s-Atom">puff</span><span class="p">).</span>
</pre></div>
<p>Rule (2) is a <a href="Recursion_(computer_science)" title="Recursion (computer science)">recursive</a> (inductive) definition. It can be understood declaratively, without the need to understand how it is executed.
</p><p>Rule (3) shows how <a href="Function_(computer_programming)" title="Function (computer programming)">functions</a> are represented by using relations. Here, the mother and father functions ensure that every individual has only one mother and only one father.
</p><p>Prolog is an untyped language. Nonetheless, <a href="Inheritance_(object-oriented_programming)" title="Inheritance (object-oriented programming)">inheritance</a> can be represented by using predicates. Rule (4) asserts that a creature is a superclass of a dragon.
</p><p>Questions are answered using <a href="Backward_reasoning" class="mw-redirect" title="Backward reasoning">backward reasoning</a>. Given the question:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre> <span class="s s-Atom">?-</span> <span class="nf">billows_fire</span><span class="p">(</span><span class="nv">X</span><span class="p">).</span>
</pre></div>
<p>Prolog generates two answers&nbsp;:
</p>
<div class="mw-highlight mw-highlight-lang-prolog mw-content-ltr" dir="ltr"><pre><span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">norberta</span>
<span class="nv">X</span> <span class="o">=</span> <span class="s s-Atom">puff</span>
</pre></div>
<p>Practical applications for Prolog are <a href="Knowledge_representation" class="mw-redirect" title="Knowledge representation">knowledge representation</a> and <a href="Problem_solving" title="Problem solving">problem solving</a> in <a href="Artificial_intelligence" title="Artificial intelligence">artificial intelligence</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Object-oriented_programming">Object-oriented programming</h3></div>
<p><a href="Object-oriented_programming" title="Object-oriented programming">Object-oriented programming</a> is a programming method to execute <a href="Method_(computer_programming)" title="Method (computer programming)">operations</a> (<a href="Function_(computer_programming)" title="Function (computer programming)">functions</a>) on <a href="Object_(computer_science)" title="Object (computer science)">objects</a>.<sup id="cite_ref-cpl_3rd-ch2-35_quote1_102-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-35_quote1-102"><span class="cite-bracket">[</span>91<span class="cite-bracket">]</span></a></sup> The basic idea is to group the characteristics of a <a href="Phenomenon" title="Phenomenon">phenomenon</a> into an object <a href="Record_(computer_science)" title="Record (computer science)">container</a> and give the container a name. The <i>operations</i> on the phenomenon are also grouped into the container.<sup id="cite_ref-cpl_3rd-ch2-35_quote1_102-1" class="reference"><a href="#cite_note-cpl_3rd-ch2-35_quote1-102"><span class="cite-bracket">[</span>91<span class="cite-bracket">]</span></a></sup> <i>Object-oriented programming</i> developed by combining the need for containers and the need for safe <a href="Functional_programming" title="Functional programming">functional programming</a>.<sup id="cite_ref-cpl_3rd-ch2-39_quote1_103-0" class="reference"><a href="#cite_note-cpl_3rd-ch2-39_quote1-103"><span class="cite-bracket">[</span>92<span class="cite-bracket">]</span></a></sup> This programming method need not be confined to an <i>object-oriented language</i>.<sup id="cite_ref-se-ch9-284_quote1_104-0" class="reference"><a href="#cite_note-se-ch9-284_quote1-104"><span class="cite-bracket">[</span>93<span class="cite-bracket">]</span></a></sup> In an object-oriented language, an object container is called a <a href="Class_(computer_programming)" title="Class (computer programming)">class</a>. In a non-object-oriented language, a <a href="Data_structure" title="Data structure">data structure</a> (which is also known as a <a href="Record_(computer_science)" title="Record (computer science)">record</a>) may become an object container. To turn a data structure into an object container, operations need to be written specifically for the structure. The resulting structure is called an <a href="Abstract_datatype" class="mw-redirect" title="Abstract datatype">abstract datatype</a>.<sup id="cite_ref-dsa-ch3-p57_105-0" class="reference"><a href="#cite_note-dsa-ch3-p57-105"><span class="cite-bracket">[</span>94<span class="cite-bracket">]</span></a></sup> However, <a href="Inheritance_(object-oriented_programming)" title="Inheritance (object-oriented programming)">inheritance</a> will be missing. Nonetheless, this shortcoming can be overcome.
</p><p>Here is a <a href="C_programming_language" class="mw-redirect" title="C programming language">C programming language</a> <i>header file</i> for the <i>GRADE abstract datatype</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="cm">/* grade.h */</span>
<span class="cm">/* ------- */</span>

<span class="cm">/* Used to allow multiple source files to include */</span>
<span class="cm">/* this header file without duplication errors. */</span>
<span class="cm">/* ---------------------------------------------- */</span>
<span class="cp">#ifndef GRADE_H</span>
<span class="cp">#define GRADE_H</span>

<span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
<span class="p">{</span>
<span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="p">;</span>
<span class="p">}</span><span class="w"> </span><span class="n">GRADE</span><span class="p">;</span>

<span class="cm">/* Constructor */</span>
<span class="cm">/* ----------- */</span>
<span class="n">GRADE</span><span class="w"> </span><span class="o">*</span><span class="nf">grade_new</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">);</span>

<span class="kt">int</span><span class="w"> </span><span class="nf">grade_numeric</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">);</span>
<span class="cp">#endif</span>
</pre></div>
<p>The <code>grade_new()</code> function performs the same algorithm as the C++ <a href="Constructor_(object-oriented_programming)" title="Constructor (object-oriented programming)">constructor</a> operation.
</p><p>Here is a C programming language <i><a href="Source_file" class="mw-redirect" title="Source file">source file</a></i> for the <i>GRADE abstract datatype</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="cm">/* grade.c */</span>
<span class="cm">/* ------- */</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"grade.h"</span>

<span class="n">GRADE</span><span class="w"> </span><span class="o">*</span><span class="nf">grade_new</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="n">GRADE</span><span class="w"> </span><span class="o">*</span><span class="n">grade</span><span class="p">;</span>

<span class="w"> </span><span class="cm">/* Allocate heap memory */</span>
<span class="w"> </span><span class="cm">/* -------------------- */</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">grade</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">calloc</span><span class="p">(</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">GRADE</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span>
<span class="w"> </span><span class="s">"ERROR in %s/%s/%d: calloc() returned empty.</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span>
<span class="w"> </span><span class="n">__FILE__</span><span class="p">,</span>
<span class="w"> </span><span class="n">__FUNCTION__</span><span class="p">,</span>
<span class="w"> </span><span class="n">__LINE__</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="p">}</span>

<span class="w"> </span><span class="n">grade</span><span class="o">-&gt;</span><span class="n">letter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">letter</span><span class="p">;</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">grade</span><span class="p">;</span>
<span class="p">}</span>

<span class="kt">int</span><span class="w"> </span><span class="nf">grade_numeric</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'A'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'B'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'b'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'C'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'c'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'D'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'d'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'F'</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">letter</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'f'</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>In the constructor, the function <code>calloc()</code> is used instead of <code>malloc()</code> because each memory cell will be set to zero.
</p><p>Here is a C programming language <i>header file</i> for the <i>PERSON abstract datatype</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="cm">/* person.h */</span>
<span class="cm">/* -------- */</span>
<span class="cp">#ifndef PERSON_H</span>
<span class="cp">#define PERSON_H</span>

<span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
<span class="p">{</span>
<span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
<span class="p">}</span><span class="w"> </span><span class="n">PERSON</span><span class="p">;</span>

<span class="cm">/* Constructor */</span>
<span class="cm">/* ----------- */</span>
<span class="n">PERSON</span><span class="w"> </span><span class="o">*</span><span class="nf">person_new</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">);</span>
<span class="cp">#endif</span>
</pre></div>
<p>Here is a C programming language <i>source file</i> for the <i>PERSON abstract datatype</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="cm">/* person.c */</span>
<span class="cm">/* -------- */</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"person.h"</span>

<span class="n">PERSON</span><span class="w"> </span><span class="o">*</span><span class="nf">person_new</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="n">PERSON</span><span class="w"> </span><span class="o">*</span><span class="n">person</span><span class="p">;</span>

<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">person</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">calloc</span><span class="p">(</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">PERSON</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span>
<span class="w"> </span><span class="s">"ERROR in %s/%s/%d: calloc() returned empty.</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span>
<span class="w"> </span><span class="n">__FILE__</span><span class="p">,</span>
<span class="w"> </span><span class="n">__FUNCTION__</span><span class="p">,</span>
<span class="w"> </span><span class="n">__LINE__</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="p">}</span>

<span class="w"> </span><span class="n">person</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">person</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Here is a C programming language <i>header file</i> for the <i>STUDENT abstract datatype</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="cm">/* student.h */</span>
<span class="cm">/* --------- */</span>
<span class="cp">#ifndef STUDENT_H</span>
<span class="cp">#define STUDENT_H</span>

<span class="cp">#include</span><span class="w"> </span><span class="cpf">"person.h"</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"grade.h"</span>

<span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
<span class="p">{</span>
<span class="w"> </span><span class="cm">/* A STUDENT is a subset of PERSON. */</span>
<span class="w"> </span><span class="cm">/* -------------------------------- */</span>
<span class="w"> </span><span class="n">PERSON</span><span class="w"> </span><span class="o">*</span><span class="n">person</span><span class="p">;</span>

<span class="w"> </span><span class="n">GRADE</span><span class="w"> </span><span class="o">*</span><span class="n">grade</span><span class="p">;</span>
<span class="p">}</span><span class="w"> </span><span class="n">STUDENT</span><span class="p">;</span>

<span class="cm">/* Constructor */</span>
<span class="cm">/* ----------- */</span>
<span class="n">STUDENT</span><span class="w"> </span><span class="o">*</span><span class="nf">student_new</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">);</span>
<span class="cp">#endif</span>
</pre></div>
<p>Here is a C programming language <i>source file</i> for the <i>STUDENT abstract datatype</i> in a simple school application:
</p>
<div class="mw-highlight mw-highlight-lang-cpp mw-content-ltr" dir="ltr"><pre><span class="cm">/* student.c */</span>
<span class="cm">/* --------- */</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"student.h"</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"person.h"</span>

<span class="n">STUDENT</span><span class="w"> </span><span class="o">*</span><span class="nf">student_new</span><span class="p">(</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="n">STUDENT</span><span class="w"> </span><span class="o">*</span><span class="n">student</span><span class="p">;</span>

<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">student</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">calloc</span><span class="p">(</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">STUDENT</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">)</span>
<span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span>
<span class="w"> </span><span class="s">"ERROR in %s/%s/%d: calloc() returned empty.</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span>
<span class="w"> </span><span class="n">__FILE__</span><span class="p">,</span>
<span class="w"> </span><span class="n">__FUNCTION__</span><span class="p">,</span>
<span class="w"> </span><span class="n">__LINE__</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="p">}</span>

<span class="w"> </span><span class="cm">/* Execute the constructor of the PERSON superclass. */</span>
<span class="w"> </span><span class="cm">/* ------------------------------------------------- */</span>
<span class="w"> </span><span class="n">student</span><span class="o">-&gt;</span><span class="n">person</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">person_new</span><span class="p">(</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">student</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Here is a driver program for demonstration:
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="cm">/* student_dvr.c */</span>
<span class="cm">/* ------------- */</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span>
<span class="cp">#include</span><span class="w"> </span><span class="cpf">"student.h"</span>

<span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="n">STUDENT</span><span class="w"> </span><span class="o">*</span><span class="n">student</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">student_new</span><span class="p">(</span><span class="w"> </span><span class="s">"The Student"</span><span class="w"> </span><span class="p">);</span>
<span class="w"> </span><span class="n">student</span><span class="o">-&gt;</span><span class="n">grade</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grade_new</span><span class="p">(</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="p">);</span>

<span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="w"> </span><span class="s">"%s: Numeric grade = %d</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span>
<span class="w"> </span><span class="cm">/* Whereas a subset exists, inheritance does not. */</span>
<span class="w"> </span><span class="n">student</span><span class="o">-&gt;</span><span class="n">person</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">,</span>
<span class="w"> </span><span class="cm">/* Functional programming is executing functions just-in-time (JIT) */</span>
<span class="w"> </span><span class="n">grade_numeric</span><span class="p">(</span><span class="w"> </span><span class="n">student</span><span class="o">-&gt;</span><span class="n">grade</span><span class="o">-&gt;</span><span class="n">letter</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">);</span>

<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>Here is a <a href="Makefile" class="mw-redirect" title="Makefile">makefile</a> to compile everything:
</p>
<div class="mw-highlight mw-highlight-lang-make mw-content-ltr" dir="ltr"><pre><span class="c"># makefile</span>
<span class="c"># --------</span>
<span class="nf">all</span><span class="o">:</span><span class="w"> </span><span class="n">student_dvr</span>

<span class="nf">clean</span><span class="o">:</span>
<span class="w"> </span>rm<span class="w"> </span>student_dvr<span class="w"> </span>*.o

<span class="nf">student_dvr</span><span class="o">:</span><span class="w"> </span><span class="n">student_dvr</span>.<span class="n">c</span> <span class="n">grade</span>.<span class="n">o</span> <span class="n">student</span>.<span class="n">o</span> <span class="n">person</span>.<span class="n">o</span>
<span class="w"> </span>gcc<span class="w"> </span>student_dvr.c<span class="w"> </span>grade.o<span class="w"> </span>student.o<span class="w"> </span>person.o<span class="w"> </span>-o<span class="w"> </span>student_dvr

<span class="nf">grade.o</span><span class="o">:</span><span class="w"> </span><span class="n">grade</span>.<span class="n">c</span> <span class="n">grade</span>.<span class="n">h</span>
<span class="w"> </span>gcc<span class="w"> </span>-c<span class="w"> </span>grade.c

<span class="nf">student.o</span><span class="o">:</span><span class="w"> </span><span class="n">student</span>.<span class="n">c</span> <span class="n">student</span>.<span class="n">h</span>
<span class="w"> </span>gcc<span class="w"> </span>-c<span class="w"> </span>student.c

<span class="nf">person.o</span><span class="o">:</span><span class="w"> </span><span class="n">person</span>.<span class="n">c</span> <span class="n">person</span>.<span class="n">h</span>
<span class="w"> </span>gcc<span class="w"> </span>-c<span class="w"> </span>person.c
</pre></div>
<p>The formal strategy to build object-oriented objects is to:<sup id="cite_ref-se-ch9-285_106-0" class="reference"><a href="#cite_note-se-ch9-285-106"><span class="cite-bracket">[</span>95<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>Identify the objects. Most likely these will be nouns.</li>
<li>Identify each object's attributes. What helps to describe the object?</li>
<li>Identify each object's actions. Most likely these will be verbs.</li>
<li>Identify the relationships from object to object. Most likely these will be verbs.</li></ul>
<p>For example:
</p>
<ul><li>A person is a human identified by a name.</li>
<li>A grade is an achievement identified by a letter.</li>
<li>A student is a person who earns a grade.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Syntax_and_semantics">Syntax and semantics</h3></div>

<p>The <a href="Syntax_(programming_languages)" title="Syntax (programming languages)">syntax</a> of a <i>computer program</i> is a <a href="List" title="List">list</a> of <a href="Production_(computer_science)" title="Production (computer science)">production rules</a> which form its <a href="Formal_grammar" title="Formal grammar">grammar</a>.<sup id="cite_ref-cpl_3rd-ch12-290_quote_107-0" class="reference"><a href="#cite_note-cpl_3rd-ch12-290_quote-107"><span class="cite-bracket">[</span>96<span class="cite-bracket">]</span></a></sup> A programming language's grammar correctly places its <a href="Declaration_(computer_programming)" title="Declaration (computer programming)">declarations</a>, <a href="Expression_(computer_science)" title="Expression (computer science)">expressions</a>, and <a href="Statement_(computer_science)" title="Statement (computer science)">statements</a>.<sup id="cite_ref-cpl_3rd-ch4-78_quote1_108-0" class="reference"><a href="#cite_note-cpl_3rd-ch4-78_quote1-108"><span class="cite-bracket">[</span>97<span class="cite-bracket">]</span></a></sup> Complementing the <i>syntax</i> of a language are its <a href="Semantics_(computer_science)" title="Semantics (computer science)">semantics</a>. The <i>semantics</i> describe the meanings attached to various syntactic constructs.<sup id="cite_ref-cpl_3rd-ch12-290_109-0" class="reference"><a href="#cite_note-cpl_3rd-ch12-290-109"><span class="cite-bracket">[</span>98<span class="cite-bracket">]</span></a></sup> A syntactic construct may need a semantic description because a production rule may have an invalid interpretation.<sup id="cite_ref-cpl_3rd-ch12-294_110-0" class="reference"><a href="#cite_note-cpl_3rd-ch12-294-110"><span class="cite-bracket">[</span>99<span class="cite-bracket">]</span></a></sup> Also, different languages might have the same syntax; however, their behaviors may be different.
</p><p>The syntax of a language is formally described by listing the production rules. Whereas the syntax of a <a href="Natural_language" title="Natural language">natural language</a> is extremely complicated, a subset of the English language can have this production rule listing:<sup id="cite_ref-discrete-ch10-p615_111-0" class="reference"><a href="#cite_note-discrete-ch10-p615-111"><span class="cite-bracket">[</span>100<span class="cite-bracket">]</span></a></sup>
</p>
<ol><li>a <b>sentence</b> is made up of a <b>noun-phrase</b> followed by a <b>verb-phrase</b>;</li>
<li>a <b>noun-phrase</b> is made up of an <b>article</b> followed by an <b>adjective</b> followed by a <b>noun</b>;</li>
<li>a <b>verb-phrase</b> is made up of a <b>verb</b> followed by a <b>noun-phrase</b>;</li>
<li>an <b>article</b> is 'the';</li>
<li>an <b>adjective</b> is 'big' or</li>
<li>an <b>adjective</b> is 'small';</li>
<li>a <b>noun</b> is 'cat' or</li>
<li>a <b>noun</b> is 'mouse';</li>
<li>a <b>verb</b> is 'eats';</li></ol>
<p>The words in <b>bold-face</b> are known as <i>non-terminals</i>. The words in 'single quotes' are known as <i>terminals</i>.<sup id="cite_ref-cpl_3rd-ch12-291_112-0" class="reference"><a href="#cite_note-cpl_3rd-ch12-291-112"><span class="cite-bracket">[</span>101<span class="cite-bracket">]</span></a></sup>
</p><p>From this production rule listing, complete sentences may be formed using a series of replacements.<sup id="cite_ref-discrete-ch10-p616_113-0" class="reference"><a href="#cite_note-discrete-ch10-p616-113"><span class="cite-bracket">[</span>102<span class="cite-bracket">]</span></a></sup> The process is to replace <i>non-terminals</i> with either a valid <i>non-terminal</i> or a valid <i>terminal</i>. The replacement process repeats until only <i>terminals</i> remain. One valid sentence is:
</p>
<ul><li><b>sentence</b></li>
<li><b>noun-phrase</b> <b>verb-phrase</b></li>
<li><b>article</b> <b>adjective</b> <b>noun</b> <b>verb-phrase</b></li>
<li><i>the</i> <b>adjective</b> <b>noun</b> <b>verb-phrase</b></li>
<li><i>the</i> <i>big</i> <b>noun</b> <b>verb-phrase</b></li>
<li><i>the</i> <i>big</i> <i>cat</i> <b>verb-phrase</b></li>
<li><i>the</i> <i>big</i> <i>cat</i> <b>verb</b> <b>noun-phrase</b></li>
<li><i>the</i> <i>big</i> <i>cat</i> <i>eats</i> <b>noun-phrase</b></li>
<li><i>the</i> <i>big</i> <i>cat</i> <i>eats</i> <b>article</b> <b>adjective</b> <b>noun</b></li>
<li><i>the</i> <i>big</i> <i>cat</i> <i>eats</i> <i>the</i> <b>adjective</b> <b>noun</b></li>
<li><i>the</i> <i>big</i> <i>cat</i> <i>eats</i> <i>the</i> <i>small</i> <b>noun</b></li>
<li><i>the</i> <i>big</i> <i>cat</i> <i>eats</i> <i>the</i> <i>small</i> <i>mouse</i></li></ul>
<p>However, another combination results in an invalid sentence:
</p>
<ul><li><i>the</i> <i>small</i> <i>mouse</i> <i>eats</i> <i>the</i> <i>big</i> <i>cat</i></li></ul>
<p>Therefore, a <i>semantic</i> is necessary to correctly describe the meaning of an <i>eat</i> activity.
</p><p>One <i>production rule</i> listing method is called the <a href="Backus%E2%80%93Naur_form" title="Backus–Naur form">Backus–Naur form</a> (BNF).<sup id="cite_ref-discrete-ch10-p623_114-0" class="reference"><a href="#cite_note-discrete-ch10-p623-114"><span class="cite-bracket">[</span>103<span class="cite-bracket">]</span></a></sup> BNF describes the syntax of a language and itself has a <i>syntax</i>. This recursive definition is an example of a <a href="Metalanguage" title="Metalanguage">metalanguage</a>.<sup id="cite_ref-cpl_3rd-ch12-290_109-1" class="reference"><a href="#cite_note-cpl_3rd-ch12-290-109"><span class="cite-bracket">[</span>98<span class="cite-bracket">]</span></a></sup> The <i>syntax</i> of BNF includes:
</p>
<ul><li><code>::=</code> which translates to <i>is made up of a[n]</i> when a non-terminal is to its right. It translates to <i>is</i> when a terminal is to its right.</li>
<li><code>|</code> which translates to <i>or</i>.</li>
<li><code>&lt;</code> and <code>&gt;</code> which surround <b>non-terminals</b>.</li></ul>
<p>Using BNF, a subset of the English language can have this <i>production rule</i> listing:
</p>
<div class="mw-highlight mw-highlight-lang-bnf mw-content-ltr" dir="ltr"><pre><span class="p">&lt;</span><span class="nc">sentence</span><span class="p">&gt;</span> <span class="o">::=</span> <span class="p">&lt;</span><span class="nc">noun-phrase</span><span class="p">&gt;&lt;</span><span class="nc">verb-phrase</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nc">noun-phrase</span><span class="p">&gt;</span> <span class="o">::=</span> <span class="p">&lt;</span><span class="nc">article</span><span class="p">&gt;&lt;</span><span class="nc">adjective</span><span class="p">&gt;&lt;</span><span class="nc">noun</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nc">verb-phrase</span><span class="p">&gt;</span> <span class="o">::=</span> <span class="p">&lt;</span><span class="nc">verb</span><span class="p">&gt;&lt;</span><span class="nc">noun-phrase</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nc">article</span><span class="p">&gt;</span> <span class="o">::=</span> the
<span class="p">&lt;</span><span class="nc">adjective</span><span class="p">&gt;</span> <span class="o">::=</span> big | small
<span class="p">&lt;</span><span class="nc">noun</span><span class="p">&gt;</span> <span class="o">::=</span> cat | mouse
<span class="p">&lt;</span><span class="nc">verb</span><span class="p">&gt;</span> <span class="o">::=</span> eats
</pre></div>
<p>Using BNF, a signed-<a href="Integer_(computer_science)" title="Integer (computer science)">integer</a> has the <i>production rule</i> listing:<sup id="cite_ref-discrete-ch10-p624_115-0" class="reference"><a href="#cite_note-discrete-ch10-p624-115"><span class="cite-bracket">[</span>104<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-highlight mw-highlight-lang-bnf mw-content-ltr" dir="ltr"><pre><span class="p">&lt;</span><span class="nc">signed-integer</span><span class="p">&gt;</span> <span class="o">::=</span> <span class="p">&lt;</span><span class="nc">sign</span><span class="p">&gt;&lt;</span><span class="nc">integer</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nc">sign</span><span class="p">&gt;</span> <span class="o">::=</span> + | -
<span class="p">&lt;</span><span class="nc">integer</span><span class="p">&gt;</span> <span class="o">::=</span> <span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;</span> | <span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;&lt;</span><span class="nc">integer</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;</span> <span class="o">::=</span> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
</pre></div>
<p>Notice the recursive production rule:
</p>
<div class="mw-highlight mw-highlight-lang-bnf mw-content-ltr" dir="ltr"><pre><span class="p">&lt;</span><span class="nc">integer</span><span class="p">&gt;</span> <span class="o">::=</span> <span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;</span> | <span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;&lt;</span><span class="nc">integer</span><span class="p">&gt;</span>
</pre></div>
<p>This allows for an infinite number of possibilities. Therefore, a <i>semantic</i> is necessary to describe a limitation of the number of digits.
</p><p>Notice the leading zero possibility in the production rules:
</p>
<div class="mw-highlight mw-highlight-lang-bnf mw-content-ltr" dir="ltr"><pre><span class="p">&lt;</span><span class="nc">integer</span><span class="p">&gt;</span> <span class="o">::=</span> <span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;</span> | <span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;&lt;</span><span class="nc">integer</span><span class="p">&gt;</span>
<span class="p">&lt;</span><span class="nc">digit</span><span class="p">&gt;</span> <span class="o">::=</span> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
</pre></div>
<p>Therefore, a <i>semantic</i> is necessary to describe that leading zeros need to be ignored.
</p><p>Two formal methods are available to describe <i>semantics</i>. They are <a href="Denotational_semantics" title="Denotational semantics">denotational semantics</a> and <a href="Axiomatic_semantics" title="Axiomatic semantics">axiomatic semantics</a>.<sup id="cite_ref-cpl_3rd-ch12-297_116-0" class="reference"><a href="#cite_note-cpl_3rd-ch12-297-116"><span class="cite-bracket">[</span>105<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Software_engineering_and_computer_programming">Software engineering and computer programming</h2></div>

<p><a href="Software_engineering" title="Software engineering">Software engineering</a> is a variety of techniques to produce <a href="Software_quality" title="Software quality">quality</a> <i>computer programs</i>.<sup id="cite_ref-se-preface1_117-0" class="reference"><a href="#cite_note-se-preface1-117"><span class="cite-bracket">[</span>106<span class="cite-bracket">]</span></a></sup> <a href="Computer_programming" title="Computer programming">Computer programming</a> is the process of writing or editing <a href="Source_code" title="Source code">source code</a>. In a formal environment, a <a href="Systems_analyst" title="Systems analyst">systems analyst</a> will gather information from managers about all the organization's processes to automate. This professional then prepares a <a href="Functional_requirement" title="Functional requirement">detailed plan</a> for the new or modified system.<sup id="cite_ref-pis-ch12-p507_118-0" class="reference"><a href="#cite_note-pis-ch12-p507-118"><span class="cite-bracket">[</span>107<span class="cite-bracket">]</span></a></sup> The plan is analogous to an architect's blueprint.<sup id="cite_ref-pis-ch12-p507_118-1" class="reference"><a href="#cite_note-pis-ch12-p507-118"><span class="cite-bracket">[</span>107<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Performance_objectives">Performance objectives</h3></div>
<p>The systems analyst has the objective to deliver the right information to the right person at the right time.<sup id="cite_ref-pis-ch12-p513_119-0" class="reference"><a href="#cite_note-pis-ch12-p513-119"><span class="cite-bracket">[</span>108<span class="cite-bracket">]</span></a></sup> The critical factors to achieve this objective are:<sup id="cite_ref-pis-ch12-p513_119-1" class="reference"><a href="#cite_note-pis-ch12-p513-119"><span class="cite-bracket">[</span>108<span class="cite-bracket">]</span></a></sup>
</p>
<ol><li>The quality of the output. Is the output useful for decision-making?</li>
<li>The accuracy of the output. Does it reflect the true situation?</li>
<li>The format of the output. Is the output easily understood?</li>
<li>The speed of the output. Time-sensitive information is important when communicating with the customer in real time.</li></ol>
<div class="mw-heading mw-heading3"><h3 id="Cost_objectives">Cost objectives</h3></div>
<p>Achieving performance objectives should be balanced with all of the costs, including:<sup id="cite_ref-pis-ch12-p514_120-0" class="reference"><a href="#cite_note-pis-ch12-p514-120"><span class="cite-bracket">[</span>109<span class="cite-bracket">]</span></a></sup>
</p>
<ol><li>Development costs.</li>
<li>Uniqueness costs. A reusable system may be expensive. However, it might be preferred over a limited-use system.</li>
<li>Hardware costs.</li>
<li>Operating costs.</li></ol>
<p>Applying a <a href="Systems_development_life_cycle" title="Systems development life cycle">systems development process</a> will mitigate the axiom: the later in the process an error is detected, the more expensive it is to correct.<sup id="cite_ref-pis-ch12-p516_121-0" class="reference"><a href="#cite_note-pis-ch12-p516-121"><span class="cite-bracket">[</span>110<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Waterfall_model">Waterfall model</h3></div>
<p>The <a href="Waterfall_model" title="Waterfall model">waterfall model</a> is an implementation of a <i>systems development process</i>.<sup id="cite_ref-se-ch1-8_122-0" class="reference"><a href="#cite_note-se-ch1-8-122"><span class="cite-bracket">[</span>111<span class="cite-bracket">]</span></a></sup> As the <i>waterfall</i> label implies, the basic phases overlap each other:<sup id="cite_ref-pis-ch12-p517_123-0" class="reference"><a href="#cite_note-pis-ch12-p517-123"><span class="cite-bracket">[</span>112<span class="cite-bracket">]</span></a></sup>
</p>
<ol><li>The <i>investigation phase</i> is to understand the underlying problem.</li>
<li>The <i>analysis phase</i> is to understand the possible solutions.</li>
<li>The <i>design phase</i> is to <a href="Software_design" title="Software design">plan</a> the best solution.</li>
<li>The <i>implementation phase</i> is to program the best solution.</li>
<li>The <i>maintenance phase</i> lasts throughout the life of the system. Changes to the system after it is deployed may be necessary.<sup id="cite_ref-se-ch11-345_124-0" class="reference"><a href="#cite_note-se-ch11-345-124"><span class="cite-bracket">[</span>113<span class="cite-bracket">]</span></a></sup> Faults may exist, including specification faults, design faults, or coding faults. Improvements may be necessary. Adaption may be necessary to react to a changing environment.</li></ol>
<div class="mw-heading mw-heading3"><h3 id="Computer_programmer">Computer programmer</h3></div>
<p>A <a href="Computer_programmer" class="mw-redirect" title="Computer programmer">computer programmer</a> is a specialist responsible for writing or modifying the source code to implement the detailed plan.<sup id="cite_ref-pis-ch12-p507_118-2" class="reference"><a href="#cite_note-pis-ch12-p507-118"><span class="cite-bracket">[</span>107<span class="cite-bracket">]</span></a></sup> A programming team is likely to be needed because most systems are too large to be completed by a single programmer.<sup id="cite_ref-se-ch10-319_125-0" class="reference"><a href="#cite_note-se-ch10-319-125"><span class="cite-bracket">[</span>114<span class="cite-bracket">]</span></a></sup> However, adding programmers to a project may not shorten the completion time. Instead, it may lower the quality of the system.<sup id="cite_ref-se-ch10-319_125-1" class="reference"><a href="#cite_note-se-ch10-319-125"><span class="cite-bracket">[</span>114<span class="cite-bracket">]</span></a></sup> To be effective, program modules need to be defined and distributed to team members.<sup id="cite_ref-se-ch10-319_125-2" class="reference"><a href="#cite_note-se-ch10-319-125"><span class="cite-bracket">[</span>114<span class="cite-bracket">]</span></a></sup> Also, team members must interact with one another in a meaningful and effective way.<sup id="cite_ref-se-ch10-319_125-3" class="reference"><a href="#cite_note-se-ch10-319-125"><span class="cite-bracket">[</span>114<span class="cite-bracket">]</span></a></sup>
</p><p>Computer programmers may be <a href="Programming_in_the_large_and_programming_in_the_small#Programming_in_the_small" title="Programming in the large and programming in the small">programming in the small</a>: programming within a single module.<sup id="cite_ref-se-ch10-331_126-0" class="reference"><a href="#cite_note-se-ch10-331-126"><span class="cite-bracket">[</span>115<span class="cite-bracket">]</span></a></sup> Chances are a module will execute modules located in other source code files. Therefore, computer programmers may be <a href="Programming_in_the_large" class="mw-redirect" title="Programming in the large">programming in the large</a>: programming modules so they will effectively couple with each other.<sup id="cite_ref-se-ch10-331_126-1" class="reference"><a href="#cite_note-se-ch10-331-126"><span class="cite-bracket">[</span>115<span class="cite-bracket">]</span></a></sup> Programming-in-the-large includes contributing to the <a href="Application_programming_interface" class="mw-redirect" title="Application programming interface">application programming interface</a> (API).
</p>
<div class="mw-heading mw-heading3"><h3 id="Program_modules">Program modules</h3></div>
<p><a href="Modular_programming" title="Modular programming">Modular programming</a> is a technique to refine <i>imperative language</i> programs. Refined programs may reduce the software size, separate responsibilities, and thereby mitigate <a href="Software_aging" title="Software aging">software aging</a>. A <i>program module</i> is a sequence of statements that are bounded within a <a href="Block_(programming)" title="Block (programming)">block</a> and together identified by a name.<sup id="cite_ref-se-ch8-216_127-0" class="reference"><a href="#cite_note-se-ch8-216-127"><span class="cite-bracket">[</span>116<span class="cite-bracket">]</span></a></sup> Modules have a <i>function</i>, <i>context</i>, and <i>logic</i>:<sup id="cite_ref-se-ch8-219_128-0" class="reference"><a href="#cite_note-se-ch8-219-128"><span class="cite-bracket">[</span>117<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>The <i>function</i> of a module is what it does.</li>
<li>The <i>context</i> of a module are the elements being performed upon.</li>
<li>The <i>logic</i> of a module is how it performs the function.</li></ul>
<p>The module's name should be derived first by its <i>function</i>, then by its <i>context</i>. Its <i>logic</i> should not be part of the name.<sup id="cite_ref-se-ch8-219_128-1" class="reference"><a href="#cite_note-se-ch8-219-128"><span class="cite-bracket">[</span>117<span class="cite-bracket">]</span></a></sup> For example, <code>function compute_square_root( x )</code> or <code>function compute_square_root_integer( i&nbsp;: integer )</code> are appropriate module names. However, <code>function compute_square_root_by_division( x )</code> is not.
</p><p>The degree of interaction <i>within</i> a module is its level of <a href="Cohesion_(computer_science)" title="Cohesion (computer science)">cohesion</a>.<sup id="cite_ref-se-ch8-219_128-2" class="reference"><a href="#cite_note-se-ch8-219-128"><span class="cite-bracket">[</span>117<span class="cite-bracket">]</span></a></sup> <i>Cohesion</i> is a judgment of the relationship between a module's name and its <i>function</i>. The degree of interaction <i>between</i> modules is the level of <a href="Coupling_(computer_science)" class="mw-redirect" title="Coupling (computer science)">coupling</a>.<sup id="cite_ref-se-ch8-226_129-0" class="reference"><a href="#cite_note-se-ch8-226-129"><span class="cite-bracket">[</span>118<span class="cite-bracket">]</span></a></sup> <i>Coupling</i> is a judgement of the relationship between a module's <i>context</i> and the elements being performed upon.
</p>
<div class="mw-heading mw-heading3"><h3 id="Cohesion">Cohesion</h3></div>
<p>The levels of cohesion from worst to best are:<sup id="cite_ref-se-ch8-220_130-0" class="reference"><a href="#cite_note-se-ch8-220-130"><span class="cite-bracket">[</span>119<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li><i>Coincidental Cohesion</i>: A module has coincidental cohesion if it performs multiple functions, and the functions are completely unrelated. For example, <code>function read_sales_record_print_next_line_convert_to_float()</code>. Coincidental cohesion occurs in practice if management enforces silly rules. For example, "Every module will have between 35 and 50 executable statements."<sup id="cite_ref-se-ch8-220_130-1" class="reference"><a href="#cite_note-se-ch8-220-130"><span class="cite-bracket">[</span>119<span class="cite-bracket">]</span></a></sup></li>
<li>Logical Cohesion: A module has logical cohesion if it has available a series of functions, but only one of them is executed. For example, <code>function perform_arithmetic( perform_addition, a, b )</code>.</li>
<li><i>Temporal Cohesion</i>: A module has temporal cohesion if it performs functions related to time. One example, <code>function initialize_variables_and_open_files()</code>. Another example, <code>stage_one()</code>, <code>stage_two()</code>, ...</li>
<li><i>Procedural Cohesion</i>: A module has procedural cohesion if it performs multiple loosely related functions. For example, <code>function read_part_number_update_employee_record()</code>.</li>
<li><i>Communicational Cohesion</i>: A module has communicational cohesion if it performs multiple closely related functions. For example, <code>function read_part_number_update_sales_record()</code>.</li>
<li><i>Informational Cohesion</i>: A module has informational cohesion if it performs multiple functions, but each function has its own entry and exit points. Moreover, the functions share the same data structure. Object-oriented classes work at this level.</li>
<li><i>Functional Cohesion</i>: a module has functional cohesion if it achieves a single goal working only on local variables. Moreover, it may be reusable in other contexts.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Coupling">Coupling</h3></div>
<p>The levels of coupling from worst to best are:<sup id="cite_ref-se-ch8-226_129-1" class="reference"><a href="#cite_note-se-ch8-226-129"><span class="cite-bracket">[</span>118<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li><i>Content Coupling</i>: A module has content coupling if it modifies a <a href="Local_variable" title="Local variable">local variable</a> of another function. COBOL used to do this with the <i>alter</i> verb.</li>
<li><i>Common Coupling</i>: A module has common coupling if it modifies a global variable.</li>
<li><i>Control Coupling</i>: A module has control coupling if another module can modify its <a href="Control_flow" title="Control flow">control flow</a>. For example, <code>perform_arithmetic( perform_addition, a, b )</code>. Instead, control should be on the makeup of the returned object.</li>
<li><i>Stamp Coupling</i>: A module has stamp coupling if an element of a data structure passed as a parameter is modified. Object-oriented classes work at this level.</li>
<li><i> Data Coupling</i>: A module has data coupling if all of its input parameters are needed and none of them are modified. Moreover, the result of the function is returned as a single object.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Data_flow_analysis">Data flow analysis</h3></div>

<p><i>Data flow analysis</i> is a design method used to achieve modules of <i>functional cohesion</i> and <i>data coupling</i>.<sup id="cite_ref-se-ch9-258_131-0" class="reference"><a href="#cite_note-se-ch9-258-131"><span class="cite-bracket">[</span>120<span class="cite-bracket">]</span></a></sup> The input to the method is a <a href="Data-flow_diagram" title="Data-flow diagram">data-flow diagram</a>. A data-flow diagram is a set of ovals representing modules. Each module's name is displayed inside its oval. Modules may be at the executable level or the function level.
</p><p>The diagram also has arrows connecting modules to each other. Arrows pointing into modules represent a set of inputs. Each module should have only one arrow pointing out from it to represent its single output object. (Optionally, an additional exception arrow points out.) A <a href="Daisy_chain_(electrical_engineering)" title="Daisy chain (electrical engineering)">daisy chain</a> of ovals will convey an entire <a href="Algorithm" title="Algorithm">algorithm</a>. The input modules should start the diagram. The input modules should connect to the transform modules. The transform modules should connect to the output modules.<sup id="cite_ref-se-ch9-259_132-0" class="reference"><a href="#cite_note-se-ch9-259-132"><span class="cite-bracket">[</span>121<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Functional_categories">Functional categories</h2></div>

<p><i>Computer programs</i> may be categorized along functional lines. The main functional categories are <a href="Application_software" title="Application software">application software</a> and <a href="System_software" title="System software">system software</a>. System software includes the <a href="Operating_system" title="Operating system">operating system</a>, which couples <a href="Computer_hardware" title="Computer hardware">computer hardware</a> with application software.<sup id="cite_ref-osc-overview_133-0" class="reference"><a href="#cite_note-osc-overview-133"><span class="cite-bracket">[</span>122<span class="cite-bracket">]</span></a></sup> The purpose of the operating system is to provide an environment where application software executes in a convenient and efficient manner.<sup id="cite_ref-osc-overview_133-1" class="reference"><a href="#cite_note-osc-overview-133"><span class="cite-bracket">[</span>122<span class="cite-bracket">]</span></a></sup> Both application software and system software execute <a href="Utility_software" title="Utility software">utility programs</a>. At the hardware level, a <a href="Microcode" title="Microcode">microcode program</a> controls the circuits throughout the <a href="Central_processing_unit" title="Central processing unit">central processing unit</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Application_software">Application software</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Application_software" title="Application software">Application software</a></div>
<p>Application software is the key to unlocking the potential of the computer system.<sup id="cite_ref-pis-ch4-p147_quote1_134-0" class="reference"><a href="#cite_note-pis-ch4-p147_quote1-134"><span class="cite-bracket">[</span>123<span class="cite-bracket">]</span></a></sup> <a href="Enterprise_application_software" class="mw-redirect" title="Enterprise application software">Enterprise application software</a> bundles accounting, personnel, customer, and vendor applications. Examples include <a href="Enterprise_resource_planning" title="Enterprise resource planning">enterprise resource planning</a>, <a href="Customer_relationship_management" title="Customer relationship management">customer relationship management</a>, and <a href="Supply_chain_management_software" class="mw-redirect" title="Supply chain management software">supply chain management software</a>.
</p><p>Enterprise applications may be developed in-house as a one-of-a-kind <a href="Proprietary_software" title="Proprietary software">proprietary software</a>.<sup id="cite_ref-pis-ch4-p148_135-0" class="reference"><a href="#cite_note-pis-ch4-p148-135"><span class="cite-bracket">[</span>124<span class="cite-bracket">]</span></a></sup> Alternatively, they may be purchased as <a href="Off-the-shelf_software" class="mw-redirect" title="Off-the-shelf software">off-the-shelf software</a>. Purchased software may be modified to provide <a href="Custom_software" title="Custom software">custom software</a>. If the application is customized, then either the company's resources are used or the resources are outsourced. Outsourced software development may be from the original software vendor or a third-party developer.<sup id="cite_ref-pis-ch4-p147_quote2_136-0" class="reference"><a href="#cite_note-pis-ch4-p147_quote2-136"><span class="cite-bracket">[</span>125<span class="cite-bracket">]</span></a></sup>
</p><p>The potential advantages of in-house software are features and reports may be developed exactly to specification.<sup id="cite_ref-pis-ch4-p148_quote1_137-0" class="reference"><a href="#cite_note-pis-ch4-p148_quote1-137"><span class="cite-bracket">[</span>126<span class="cite-bracket">]</span></a></sup> Management may also be involved in the development process and offer a level of control.<sup id="cite_ref-pis-ch4-p148_quote2_138-0" class="reference"><a href="#cite_note-pis-ch4-p148_quote2-138"><span class="cite-bracket">[</span>127<span class="cite-bracket">]</span></a></sup> Management may decide to counteract a competitor's new initiative or implement a customer or vendor requirement.<sup id="cite_ref-pis-ch4-p148_quote3_139-0" class="reference"><a href="#cite_note-pis-ch4-p148_quote3-139"><span class="cite-bracket">[</span>128<span class="cite-bracket">]</span></a></sup> A merger or acquisition may necessitate enterprise software changes. The potential disadvantages of in-house software are time and resource costs may be extensive.<sup id="cite_ref-pis-ch4-p148_135-1" class="reference"><a href="#cite_note-pis-ch4-p148-135"><span class="cite-bracket">[</span>124<span class="cite-bracket">]</span></a></sup> Furthermore, risks concerning features and performance may be looming.
</p><p>The potential advantages of off-the-shelf software are upfront costs are identifiable, the basic needs should be fulfilled, and its performance and reliability have a track record.<sup id="cite_ref-pis-ch4-p148_135-2" class="reference"><a href="#cite_note-pis-ch4-p148-135"><span class="cite-bracket">[</span>124<span class="cite-bracket">]</span></a></sup> The potential disadvantages of off-the-shelf software are it may have unnecessary features that confuse end users, it may lack features the enterprise needs, and the data flow may not match the enterprise's work processes.<sup id="cite_ref-pis-ch4-p148_135-3" class="reference"><a href="#cite_note-pis-ch4-p148-135"><span class="cite-bracket">[</span>124<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Application_service_provider">Application service provider</h4></div>
<p>One approach to economically obtaining a customized enterprise application is through an <a href="Application_service_provider" title="Application service provider">application service provider</a>.<sup id="cite_ref-pis-ch4-p149_140-0" class="reference"><a href="#cite_note-pis-ch4-p149-140"><span class="cite-bracket">[</span>129<span class="cite-bracket">]</span></a></sup> Specialty companies provide hardware, custom software, and end-user support. They may speed the development of new applications because they possess skilled information system staff. The biggest advantage is it frees in-house resources from staffing and managing complex computer projects.<sup id="cite_ref-pis-ch4-p149_140-1" class="reference"><a href="#cite_note-pis-ch4-p149-140"><span class="cite-bracket">[</span>129<span class="cite-bracket">]</span></a></sup> Many application service providers target small, fast-growing companies with limited information system resources.<sup id="cite_ref-pis-ch4-p149_140-2" class="reference"><a href="#cite_note-pis-ch4-p149-140"><span class="cite-bracket">[</span>129<span class="cite-bracket">]</span></a></sup> On the other hand, larger companies with major systems will likely have their technical infrastructure in place. One risk is having to trust an external organization with sensitive information. Another risk is having to trust the provider's infrastructure reliability.<sup id="cite_ref-pis-ch4-p149_140-3" class="reference"><a href="#cite_note-pis-ch4-p149-140"><span class="cite-bracket">[</span>129<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Operating_system">Operating system</h3></div>
<div role="note" class="hatnote navigation-not-searchable">See also: <a href="Operating_system" title="Operating system">Operating system</a></div>

<p>An <a href="Operating_system" title="Operating system">operating system</a> is the low-level software that supports a computer's basic functions, such as <a href="Scheduling_(computing)" title="Scheduling (computing)">scheduling</a> <a href="Process_(computing)" title="Process (computing)">processes</a> and controlling <a href="Peripheral" title="Peripheral">peripherals</a>.<sup id="cite_ref-osc-overview_133-2" class="reference"><a href="#cite_note-osc-overview-133"><span class="cite-bracket">[</span>122<span class="cite-bracket">]</span></a></sup>
</p><p>In the 1950s, the programmer, who was also the operator, would write a program and run it. After the program finished executing, the output may have been printed, or it may have been punched onto paper tape or cards for later processing.<sup id="cite_ref-osc-ch1-p6_31-2" class="reference"><a href="#cite_note-osc-ch1-p6-31"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup> More often than not the program did not work. The programmer then looked at the console lights and fiddled with the console switches. If less fortunate, a memory printout was made for further study. In the 1960s, programmers reduced the amount of wasted time by automating the operator's job. A program called an <i>operating system</i> was kept in the computer at all times.<sup id="cite_ref-sco-ch1-p11_141-0" class="reference"><a href="#cite_note-sco-ch1-p11-141"><span class="cite-bracket">[</span>130<span class="cite-bracket">]</span></a></sup>
</p><p>The term <i>operating system</i> may refer to two levels of software.<sup id="cite_ref-lpi-ch2-p21_142-0" class="reference"><a href="#cite_note-lpi-ch2-p21-142"><span class="cite-bracket">[</span>131<span class="cite-bracket">]</span></a></sup> The operating system may refer to the <a href="Kernel_(operating_system)" title="Kernel (operating system)">kernel program</a> that manages the <a href="Process_(computing)" title="Process (computing)">processes</a>, <a href="Computer_memory" title="Computer memory">memory</a>, and <a href="Peripheral" title="Peripheral">devices</a>. More broadly, the operating system may refer to the entire package of the central software. The package includes a kernel program, <a href="Command-line_interface" title="Command-line interface">command-line interpreter</a>, <a href="Graphical_user_interface" title="Graphical user interface">graphical user interface</a>, <a href="Utility_software" title="Utility software">utility programs</a>, and <a href="Source-code_editor" title="Source-code editor">editor</a>.<sup id="cite_ref-lpi-ch2-p21_142-1" class="reference"><a href="#cite_note-lpi-ch2-p21-142"><span class="cite-bracket">[</span>131<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Kernel_Program">Kernel Program</h4></div>

<p>The kernel's main purpose is to manage the limited resources of a computer:
</p>
<ul><li>The kernel program should perform <a href="Process_scheduling" class="mw-redirect" title="Process scheduling">process scheduling</a>,<sup id="cite_ref-lpi-ch2-p22_143-0" class="reference"><a href="#cite_note-lpi-ch2-p22-143"><span class="cite-bracket">[</span>132<span class="cite-bracket">]</span></a></sup> which is also known as a <a href="Context_switch" title="Context switch">context switch</a>. The kernel creates a <a href="Process_control_block" title="Process control block">process control block</a> when a <i>computer program</i> is <a href="Loader_(computing)" title="Loader (computing)">selected for execution</a>. However, an executing program gets exclusive access to the <a href="Central_processing_unit" title="Central processing unit">central processing unit</a> only for a <a href="Preemption_(computing)#Time_slice" title="Preemption (computing)">time slice</a>. To provide each user with the <a href="Time-sharing" title="Time-sharing">appearance of continuous access</a>, the kernel quickly <a href="Preemption_(computing)" title="Preemption (computing)">preempts</a> each process control block to execute another one. The goal for <a href="Systems_programming" title="Systems programming">system developers</a> is to minimize <a href="Dispatch_latency" class="mw-redirect" title="Dispatch latency">dispatch latency</a>.</li></ul>

<ul><li>The kernel program should perform <a href="Memory_management" title="Memory management">memory management</a>.</li></ul>
<dl><dd><ul><li>When the kernel initially <a href="Loader_(computing)" title="Loader (computing)">loads</a> an executable into memory, it divides the address space logically into <a href="Region-based_memory_management" title="Region-based memory management">regions</a>.<sup id="cite_ref-duos-ch6-p152_144-0" class="reference"><a href="#cite_note-duos-ch6-p152-144"><span class="cite-bracket">[</span>133<span class="cite-bracket">]</span></a></sup> The kernel maintains a master-region table and many per-process-region (pregion) tables—one for each running <a href="Process_(computing)" title="Process (computing)">process</a>.<sup id="cite_ref-duos-ch6-p152_144-1" class="reference"><a href="#cite_note-duos-ch6-p152-144"><span class="cite-bracket">[</span>133<span class="cite-bracket">]</span></a></sup> These tables constitute the <a href="Virtual_address_space" title="Virtual address space">virtual address space</a>. The master-region table is used to determine where its contents are located in <a href="Physical_memory" class="mw-redirect" title="Physical memory">physical memory</a>. The pregion tables allow each process to have its own program (text) pregion, data pregion, and stack pregion.</li>
<li>The program pregion stores machine instructions. Since machine instructions do not change, the program pregion may be shared by many processes of the same executable.<sup id="cite_ref-duos-ch6-p152_144-2" class="reference"><a href="#cite_note-duos-ch6-p152-144"><span class="cite-bracket">[</span>133<span class="cite-bracket">]</span></a></sup></li>
<li>To save time and memory, the kernel may load only blocks of execution instructions from the disk drive, not the entire execution file completely.<sup id="cite_ref-lpi-ch2-p22_143-1" class="reference"><a href="#cite_note-lpi-ch2-p22-143"><span class="cite-bracket">[</span>132<span class="cite-bracket">]</span></a></sup></li>
<li>The kernel is responsible for translating virtual addresses into <a href="Physical_address" title="Physical address">physical addresses</a>. The kernel may request data from the <a href="Memory_controller" title="Memory controller">memory controller</a> and, instead, receive a <a href="Page_fault" title="Page fault">page fault</a>.<sup id="cite_ref-sco6th-ch6-p443_145-0" class="reference"><a href="#cite_note-sco6th-ch6-p443-145"><span class="cite-bracket">[</span>134<span class="cite-bracket">]</span></a></sup> If so, the kernel accesses the <a href="Memory_management_unit" title="Memory management unit">memory management unit</a> to populate the physical data region and translate the address.<sup id="cite_ref-esa-ch1-p8_146-0" class="reference"><a href="#cite_note-esa-ch1-p8-146"><span class="cite-bracket">[</span>135<span class="cite-bracket">]</span></a></sup></li>
<li>The kernel allocates memory from the <i>heap</i> upon request by a process.<sup id="cite_ref-cpl-ch8-p187_74-1" class="reference"><a href="#cite_note-cpl-ch8-p187-74"><span class="cite-bracket">[</span>64<span class="cite-bracket">]</span></a></sup> When the process is finished with the memory, the process may request for it to be <a href="Manual_memory_management" title="Manual memory management">freed</a>. If the process exits without requesting all allocated memory to be freed, then the kernel performs <a href="Garbage_collection_(computer_science)" title="Garbage collection (computer science)">garbage collection</a> to free the memory.</li>
<li>The kernel also ensures that a process only accesses its own memory, and not that of the kernel or other processes.<sup id="cite_ref-lpi-ch2-p22_143-2" class="reference"><a href="#cite_note-lpi-ch2-p22-143"><span class="cite-bracket">[</span>132<span class="cite-bracket">]</span></a></sup></li></ul></dd></dl>
<ul><li>The kernel program should perform <a href="File_system" title="File system">file system management</a>.<sup id="cite_ref-lpi-ch2-p22_143-3" class="reference"><a href="#cite_note-lpi-ch2-p22-143"><span class="cite-bracket">[</span>132<span class="cite-bracket">]</span></a></sup> The kernel has instructions to create, retrieve, update, and delete files.</li>
<li>The kernel program should perform <a href="Peripheral" title="Peripheral">device management</a>.<sup id="cite_ref-lpi-ch2-p22_143-4" class="reference"><a href="#cite_note-lpi-ch2-p22-143"><span class="cite-bracket">[</span>132<span class="cite-bracket">]</span></a></sup> The kernel provides programs to standardize and simplify the interface to the mouse, keyboard, disk drives, printers, and other devices. Moreover, the kernel should arbitrate access to a device if two processes request it at the same time.</li>
<li>The kernel program should perform <a href="Network_management" title="Network management">network management</a>.<sup id="cite_ref-lpi-ch2-p23_147-0" class="reference"><a href="#cite_note-lpi-ch2-p23-147"><span class="cite-bracket">[</span>136<span class="cite-bracket">]</span></a></sup> The kernel transmits and receives <a href="Network_packet" title="Network packet">packets</a> on behalf of processes. One key service is to find an efficient <a href="Routing_table" title="Routing table">route</a> to the target system.</li>
<li>The kernel program should provide <a href="System_calls" class="mw-redirect" title="System calls">system level functions</a> for programmers to use.<sup id="cite_ref-upe-ch7-p201_148-0" class="reference"><a href="#cite_note-upe-ch7-p201-148"><span class="cite-bracket">[</span>137<span class="cite-bracket">]</span></a></sup>
<ul><li>Programmers access files through a relatively simple interface that in turn executes a relatively complicated low-level I/O interface. The low-level interface includes file creation, <a href="File_descriptor" title="File descriptor">file descriptors</a>, file seeking, physical reading, and physical writing.</li>
<li>Programmers create processes through a relatively simple interface that in turn executes a relatively complicated low-level interface.</li>
<li>Programmers perform date/time arithmetic through a relatively simple interface that in turn executes a relatively complicated low-level time interface.<sup id="cite_ref-lpi-ch10-p187_149-0" class="reference"><a href="#cite_note-lpi-ch10-p187-149"><span class="cite-bracket">[</span>138<span class="cite-bracket">]</span></a></sup></li></ul></li>
<li>The kernel program should provide a <a href="Inter-process_communication" title="Inter-process communication">communication channel</a> between executing processes.<sup id="cite_ref-usp-ch6-p121_150-0" class="reference"><a href="#cite_note-usp-ch6-p121-150"><span class="cite-bracket">[</span>139<span class="cite-bracket">]</span></a></sup> For a large software system, it may be desirable to <a href="Software_engineering" title="Software engineering">engineer</a> the system into smaller processes. Processes may communicate with one another by sending and receiving <a href="Signal_(IPC)" title="Signal (IPC)">signals</a>.</li></ul>
<p>Originally, operating systems were programmed in <a href="Assembly_language" title="Assembly language">assembly</a>; however, modern operating systems are typically written in higher-level languages like <a href="C_(programming_language)" title="C (programming language)">C</a>, <a href="Objective-C" title="Objective-C">Objective-C</a>, and <a href="Swift_(programming_language)" title="Swift (programming language)">Swift</a>.<sup id="cite_ref-151" class="reference"><a href="#cite_note-151"><span class="cite-bracket">[</span>l<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Utility_program">Utility program</h3></div>
<p>A <a href="Utility_program" class="mw-redirect" title="Utility program">utility program</a> is designed to aid system administration and software execution. Operating systems execute hardware utility programs to check the status of disk drives, memory, speakers, and printers.<sup id="cite_ref-pis-ch4-p145_152-0" class="reference"><a href="#cite_note-pis-ch4-p145-152"><span class="cite-bracket">[</span>140<span class="cite-bracket">]</span></a></sup> A utility program may optimize the placement of a file on a crowded disk. System utility programs monitor hardware and network performance. When a metric is outside an acceptable range, a trigger alert is generated.<sup id="cite_ref-pis-ch4-p146_153-0" class="reference"><a href="#cite_note-pis-ch4-p146-153"><span class="cite-bracket">[</span>141<span class="cite-bracket">]</span></a></sup>
</p><p>Utility programs include compression programs so data files are stored on less disk space.<sup id="cite_ref-pis-ch4-p145_152-1" class="reference"><a href="#cite_note-pis-ch4-p145-152"><span class="cite-bracket">[</span>140<span class="cite-bracket">]</span></a></sup> Compressed programs also save time when data files are transmitted over the network.<sup id="cite_ref-pis-ch4-p145_152-2" class="reference"><a href="#cite_note-pis-ch4-p145-152"><span class="cite-bracket">[</span>140<span class="cite-bracket">]</span></a></sup> Utility programs can sort and merge data sets.<sup id="cite_ref-pis-ch4-p146_153-1" class="reference"><a href="#cite_note-pis-ch4-p146-153"><span class="cite-bracket">[</span>141<span class="cite-bracket">]</span></a></sup> Utility programs detect <a href="Computer_virus" title="Computer virus">computer viruses</a>.<sup id="cite_ref-pis-ch4-p146_153-2" class="reference"><a href="#cite_note-pis-ch4-p146-153"><span class="cite-bracket">[</span>141<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Microcode_program">Microcode program</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Microcode" title="Microcode">Microcode</a></div>





<p>A <a href="Microcode" title="Microcode">microcode program</a> is the bottom-level interpreter that controls the <a href="Data_path" class="mw-redirect" title="Data path">data path</a> of software-driven computers.<sup id="cite_ref-sco6th-ch1-p6_154-0" class="reference"><a href="#cite_note-sco6th-ch1-p6-154"><span class="cite-bracket">[</span>142<span class="cite-bracket">]</span></a></sup>
(Advances in <a href="Random_logic" title="Random logic">hardware</a> have migrated these operations to <a href="Control_unit#Hardwired_control_unit" title="Control unit">hardware execution circuits</a>.)<sup id="cite_ref-sco6th-ch1-p6_154-1" class="reference"><a href="#cite_note-sco6th-ch1-p6-154"><span class="cite-bracket">[</span>142<span class="cite-bracket">]</span></a></sup> Microcode instructions allow the programmer to more easily implement the <a href="Logic_level" title="Logic level">digital logic level</a><sup id="cite_ref-sco6th-ch4-p243_155-0" class="reference"><a href="#cite_note-sco6th-ch4-p243-155"><span class="cite-bracket">[</span>143<span class="cite-bracket">]</span></a></sup>—the computer's real hardware. The digital logic level is the boundary between <a href="Computer_science" title="Computer science">computer science</a> and <a href="Computer_engineering" title="Computer engineering">computer engineering</a>.<sup id="cite_ref-sco6th-ch3-p147_156-0" class="reference"><a href="#cite_note-sco6th-ch3-p147-156"><span class="cite-bracket">[</span>144<span class="cite-bracket">]</span></a></sup>
</p><p>A <a href="Logic_gate" title="Logic gate">logic gate</a> is a tiny <a href="Field-effect_transistor" title="Field-effect transistor">transistor</a> that can return one of two signals: on or off.<sup id="cite_ref-sco6th-ch3-p148_157-0" class="reference"><a href="#cite_note-sco6th-ch3-p148-157"><span class="cite-bracket">[</span>145<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>Having one transistor forms the <a href="NOT_gate" class="mw-redirect" title="NOT gate">NOT gate</a>.</li>
<li>Connecting two transistors in series forms the <a href="NAND_gate" title="NAND gate">NAND gate</a>.</li>
<li>Connecting two transistors in parallel forms the <a href="NOR_gate" title="NOR gate">NOR gate</a>.</li>
<li>Connecting a NOT gate to a NAND gate forms the <a href="AND_gate" title="AND gate">AND gate</a>.</li>
<li>Connecting a NOT gate to a NOR gate forms the <a href="OR_gate" title="OR gate">OR gate</a>.</li></ul>
<p>These five gates form the building blocks of <a href="Boolean_algebra" title="Boolean algebra">binary algebra</a>—the digital logic functions of the computer.
</p><p>Microcode instructions are <a href="Assembly_language#Mnemonics" title="Assembly language">mnemonics</a> programmers may use to execute digital logic functions instead of forming them in binary algebra. They are stored in a <a href="Central_processing_unit" title="Central processing unit">central processing unit's</a> (CPU) <a href="Control_store" title="Control store">control store</a>.<sup id="cite_ref-sco6th-ch4-p253_158-0" class="reference"><a href="#cite_note-sco6th-ch4-p253-158"><span class="cite-bracket">[</span>146<span class="cite-bracket">]</span></a></sup>
These hardware-level instructions move data throughout the <a href="Data_path" class="mw-redirect" title="Data path">data path</a>.
</p><p>The micro-instruction cycle begins when the <a href="Microsequencer" title="Microsequencer">microsequencer</a> uses its microprogram counter to <i>fetch</i> the next <a href="Machine_instruction" class="mw-redirect" title="Machine instruction">machine instruction</a> from <a href="Random-access_memory" title="Random-access memory">random-access memory</a>.<sup id="cite_ref-sco6th-ch4-p255_159-0" class="reference"><a href="#cite_note-sco6th-ch4-p255-159"><span class="cite-bracket">[</span>147<span class="cite-bracket">]</span></a></sup> The next step is to <i>decode</i> the machine instruction by selecting the proper output line to the hardware module.<sup id="cite_ref-sco6th-ch3-p161_160-0" class="reference"><a href="#cite_note-sco6th-ch3-p161-160"><span class="cite-bracket">[</span>148<span class="cite-bracket">]</span></a></sup>
The final step is to <i>execute</i> the instruction using the hardware module's set of gates.
</p>

<p>Instructions to perform arithmetic are passed through an <a href="Arithmetic_logic_unit" title="Arithmetic logic unit">arithmetic logic unit</a> (ALU).<sup id="cite_ref-sco6th-ch3-p166_161-0" class="reference"><a href="#cite_note-sco6th-ch3-p166-161"><span class="cite-bracket">[</span>149<span class="cite-bracket">]</span></a></sup> The ALU has circuits to perform elementary operations to add, shift, and compare integers. By combining and looping the elementary operations through the ALU, the CPU performs its complex arithmetic.
</p><p>Microcode instructions move data between the CPU and the <a href="Memory_controller" title="Memory controller">memory controller</a>. Memory controller microcode instructions manipulate two <a href="Processor_register" title="Processor register">registers</a>. The <a href="Memory_address_register" title="Memory address register">memory address register</a> is used to access each memory cell's address. The <a href="Memory_data_register" class="mw-redirect" title="Memory data register">memory data register</a> is used to set and read each cell's contents.<sup id="cite_ref-sco6th-ch4-p249_162-0" class="reference"><a href="#cite_note-sco6th-ch4-p249-162"><span class="cite-bracket">[</span>150<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist reflist-lower-alpha">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text">The <a href="Prolog" title="Prolog">Prolog</a> language allows for a database of facts and rules to be entered in any order. However, a question about a database must be at the very end.</span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text">An executable has each <a href="Machine_instruction" class="mw-redirect" title="Machine instruction">machine instruction</a> ready for the <a href="CPU" class="mw-redirect" title="CPU">CPU</a>.</span>
</li>
<li id="cite_note-40"><span class="mw-cite-backlink"><b><a href="#cite_ref-40">^</a></b></span> <span class="reference-text">For more information, visit <a href="X86_assembly_language#Instruction_types" title="X86 assembly language">X86 assembly language#Instruction types</a>.</span>
</li>
<li id="cite_note-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-41">^</a></b></span> <span class="reference-text">introduced in 1999</span>
</li>
<li id="cite_note-50"><span class="mw-cite-backlink"><b><a href="#cite_ref-50">^</a></b></span> <span class="reference-text">Whereas this is a decimal number, PDP-11 code is always expressed as <a href="Octal" title="Octal">octal</a>.</span>
</li>
<li id="cite_note-57"><span class="mw-cite-backlink"><b><a href="#cite_ref-57">^</a></b></span> <span class="reference-text"><a href="Operators_in_C_and_C%2B%2B" title="Operators in C and C++">Operators</a> like <code>x++</code> will usually compile to a single instruction.</span>
</li>
<li id="cite_note-64"><span class="mw-cite-backlink"><b><a href="#cite_ref-64">^</a></b></span> <span class="reference-text">The line numbers were typically incremented by 10 to leave room if additional statements were added later.</span>
</li>
<li id="cite_note-68"><span class="mw-cite-backlink"><b><a href="#cite_ref-68">^</a></b></span> <span class="reference-text">This function could be written more concisely as <code>int increment_counter(){ static int counter; return ++counter;}</code>. 1) Static variables are automatically initialized to zero. 2) <code>++counter</code> is a prefix <a href="Increment_operator" class="mw-redirect" title="Increment operator">increment operator</a>.</span>
</li>
<li id="cite_note-70"><span class="mw-cite-backlink"><b><a href="#cite_ref-70">^</a></b></span> <span class="reference-text">This is despite the metaphor of a <i>stack,</i> which normally grows from bottom to top.</span>
</li>
<li id="cite_note-73"><span class="mw-cite-backlink"><b><a href="#cite_ref-73">^</a></b></span> <span class="reference-text"><i>C</i> also provides the <code>calloc()</code> function to allocate heap memory. It provides two additional services: 1) It allows the programmer to create an <a href="Array_(data_structure)" title="Array (data structure)">array</a> of arbitrary size. 2) It sets each <a href="Memory_cell_(computing)" title="Memory cell (computing)">memory cell</a> to zero.</span>
</li>
<li id="cite_note-75"><span class="mw-cite-backlink"><b><a href="#cite_ref-75">^</a></b></span> <span class="reference-text">For <a href="String_(computer_science)" title="String (computer science)">string</a> variables, <i>C</i> provides the <code>strdup()</code> function. It executes both the allocation function and the copy function.</span>
</li>
<li id="cite_note-151"><span class="mw-cite-backlink"><b><a href="#cite_ref-151">^</a></b></span> <span class="reference-text">The <a href="UNIX" class="mw-redirect" title="UNIX">UNIX</a> operating system was written in C, <a href="MacOS" title="MacOS">macOS</a> was written in Objective-C, and Swift replaced Objective-C.</span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<div class="reflist reflist-columns references-column-width" style="column-width: 30em;">
<ol class="references">
<li id="cite_note-ISO_2020-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-ISO_2020_2-0">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.iso.org/obp/ui/#iso:std:iso-iec:2382:ed-1:v1:en">"ISO/IEC 2382:2015"</a>. <i>ISO</i>. 2020-09-03. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160617031837/https://www.iso.org/obp/ui/#iso:std:iso-iec:2382:ed-1:v1:en">Archived</a> from the original on 2016-06-17<span class="reference-accessdate">. Retrieved <span class="nowrap">2022-05-26</span></span>. <q>[Software includes] all or part of the programs, procedures, rules, and associated documentation of an information processing system.</q></cite></span>
</li>
<li id="cite_note-cpl_3rd-ch1-7_quoted-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch1-7_quoted_3-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;7. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>. <q>An alternative to compiling a source program is to use an interpreter. An interpreter can directly execute a source program[.]</q></cite></span>
</li>
<li id="cite_note-osc-ch4-p98-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-osc-ch4-p98_4-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSilberschatz1994" class="citation book cs1">Silberschatz, Abraham (1994). <i>Operating System Concepts, Fourth Edition</i>. Addison-Wesley. p.&nbsp;98. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-201-50480-4</bdi>.</cite></span>
</li>
<li id="cite_note-sco-ch2-p32-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco-ch2-p32_5-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/32"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/32">32</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch1-7-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch1-7_6-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;7. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-30_quote1-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-30_quote1_8-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;30. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>. <q>Their intention was to produce a language that was very simple for students to learn[.]</q></cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-31-9"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-31_9-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-31_9-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-31_9-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;31. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-30-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-30_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-30_10-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-30_10-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-30_10-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-30_10-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-30_10-5"><sup><i><b>f</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;30. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-30_quote2-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-30_quote2_11-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;30. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>. <q>The idea was that students could be merely casual users or go on from Basic to more sophisticated and powerful languages[.]</q></cite></span>
</li>
<li id="cite_note-eniac-ch1-p16-12"><span class="mw-cite-backlink">^ <a href="#cite_ref-eniac-ch1-p16_12-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-eniac-ch1-p16_12-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/16"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/16">16</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco-ch1-p14-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco-ch1-p14_13-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/14"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/14">14</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><cite id="CITEREFBromley1998" class="citation journal cs1"><a href="Allan_G._Bromley" title="Allan G. Bromley">Bromley, Allan G.</a> (1998). <a rel="nofollow" class="external text" href="http://profs.scienze.univr.it/~manca/storia-informatica/babbage.pdf">"Charles Babbage's Analytical Engine, 1838"</a> <span class="cs1-format">(PDF)</span>. <i><a href="IEEE_Annals_of_the_History_of_Computing" title="IEEE Annals of the History of Computing">IEEE Annals of the History of Computing</a></i>. <b>20</b> (4): <span class="nowrap">29–</span>45. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1109%2F85.728228">10.1109/85.728228</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:2285332">2285332</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160304081812/http://profs.scienze.univr.it/~manca/storia-informatica/babbage.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on 2016-03-04<span class="reference-accessdate">. Retrieved <span class="nowrap">2015-10-30</span></span>.</cite></span>
</li>
<li id="cite_note-sco-ch1-p15-15"><span class="mw-cite-backlink">^ <a href="#cite_ref-sco-ch1-p15_15-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-sco-ch1-p15_15-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/15"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/15">15</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text"><cite id="CITEREFJ._FuegiJ._Francis2003" class="citation cs2">J. Fuegi; J. Francis (October–December 2003), "Lovelace &amp; Babbage and the creation of the 1843 'notes'", <i>Annals of the History of Computing</i>, <b>25</b> (4): 16, 19, 25, <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1109%2FMAHC.2003.1253887">10.1109/MAHC.2003.1253887</a></cite></span>
</li>
<li id="cite_note-discrete-ch10-p654-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-discrete-ch10-p654_17-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosen1991" class="citation book cs1">Rosen, Kenneth H. (1991). <a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/654"><i>Discrete Mathematics and Its Applications</i></a>. McGraw-Hill, Inc. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/654">654</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-07-053744-6</bdi>. <q>Turing machines can model all the computations that can be performed on a computing machine.</q></cite></span>
</li>
<li id="cite_note-formal_languages-ch9-p234-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-formal_languages-ch9-p234_18-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFLinz1990" class="citation book cs1">Linz, Peter (1990). <i>An Introduction to Formal Languages and Automata</i>. D. C. Heath and Company. p.&nbsp;234. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-669-17342-0</bdi>.</cite></span>
</li>
<li id="cite_note-formal_languages-ch9-p243-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-formal_languages-ch9-p243_19-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFLinz1990" class="citation book cs1">Linz, Peter (1990). <i>An Introduction to Formal Languages and Automata</i>. D. C. Heath and Company. p.&nbsp;243. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-669-17342-0</bdi>. <q>[A]ll the common mathematical functions, no matter how complicated, are Turing-computable.</q></cite></span>
</li>
<li id="cite_note-eniac-ch5-p102-20"><span class="mw-cite-backlink">^ <a href="#cite_ref-eniac-ch5-p102_20-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-eniac-ch5-p102_20-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-eniac-ch5-p102_20-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/102"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/102">102</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-eniac-ch5-p94-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-eniac-ch5-p94_21-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/94"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/94">94</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-eniac-ch5-p107-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-eniac-ch5-p107_22-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/107"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/107">107</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-eniac-ch6-p120-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-eniac-ch6-p120_23-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/120"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/120">120</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-eniac-ch6-p118-24"><span class="mw-cite-backlink">^ <a href="#cite_ref-eniac-ch6-p118_24-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-eniac-ch6-p118_24-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/118"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/118">118</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-eniac-ch6-p119-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-eniac-ch6-p119_25-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/119"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/119">119</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-eniac-ch6-p123-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-eniac-ch6-p123_26-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMcCartney1999" class="citation book cs1">McCartney, Scott (1999). <a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/123"><i>ENIAC – The Triumphs and Tragedies of the World's First Computer</i></a>. Walker and Company. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/eniac00scot/page/123">123</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-8027-1348-3</bdi>.</cite></span>
</li>
<li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"><cite id="CITEREFHuskey2003" class="citation cs2">Huskey, Harry D. (2003-01-01), <a rel="nofollow" class="external text" href="https://dl.acm.org/doi/10.5555/1074100.1074362">"EDVAC"</a>, <i>Encyclopedia of Computer Science</i>, GBR: John Wiley and Sons Ltd., pp.&nbsp;<span class="nowrap">626–</span>628, <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-470-86412-8</bdi><span class="reference-accessdate">, retrieved <span class="nowrap">2025-04-25</span></span></cite></span>
</li>
<li id="cite_note-sco-ch1-p21-28"><span class="mw-cite-backlink">^ <a href="#cite_ref-sco-ch1-p21_28-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-sco-ch1-p21_28-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <span class="id-lock-registration" title="Free registration required"><a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane"><i>Structured Computer Organization, Third Edition</i></a></span>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/n42">21</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-27-29"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-27_29-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-27_29-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;27. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-29-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-29_30-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;29. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-osc-ch1-p6-31"><span class="mw-cite-backlink">^ <a href="#cite_ref-osc-ch1-p6_31-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-osc-ch1-p6_31-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-osc-ch1-p6_31-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSilberschatz1994" class="citation book cs1">Silberschatz, Abraham (1994). <i>Operating System Concepts, Fourth Edition</i>. Addison-Wesley. p.&nbsp;6. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-201-50480-4</bdi>.</cite></span>
</li>
<li id="cite_note-digital_age-32"><span class="mw-cite-backlink">^ <a href="#cite_ref-digital_age_32-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-digital_age_32-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://books.google.com/books?id=UUbB3d2UnaAC&amp;pg=PA46"><i>To the Digital Age: Research Labs, Start-up Companies, and the Rise of MOS</i></a>. Johns Hopkins University Press. 2002. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>9780801886393</bdi>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230202181649/https://books.google.com/books?id=UUbB3d2UnaAC&amp;pg=PA46">Archived</a> from the original on February 2, 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">February 3,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-osti-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-osti_33-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFChalamala2017" class="citation web cs1">Chalamala, Babu (2017). <a rel="nofollow" class="external text" href="https://www.osti.gov/servlets/purl/1497235">"Manufacturing of Silicon Materials for Microelectronics and Solar PV"</a>. Sandia National Laboratories. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230323163602/https://www.osti.gov/biblio/1497235">Archived</a> from the original on March 23, 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">February 8,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-britannica_wafer-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-britannica_wafer_34-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.britannica.com/technology/integrated-circuit/Fabricating-ICs#ref837156">"Fabricating ICs Making a base wafer"</a>. Britannica. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220208103132/https://www.britannica.com/technology/integrated-circuit/Fabricating-ICs#ref837156">Archived</a> from the original on February 8, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">February 8,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-anysilicon-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-anysilicon_35-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://anysilicon.com/introduction-to-nmos-and-pmos-transistors/">"Introduction to NMOS and PMOS Transistors"</a>. Anysilicon. 4 November 2021. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220206051146/https://anysilicon.com/introduction-to-nmos-and-pmos-transistors/">Archived</a> from the original on 6 February 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">February 5,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-britannica_micropressor-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-britannica_micropressor_36-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.britannica.com/technology/microprocessor#ref36149">"microprocessor definition"</a>. Britannica. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220401085141/https://www.britannica.com/technology/microprocessor#ref36149">Archived</a> from the original on April 1, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">April 1,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-intel_4004-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-intel_4004_37-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://spectrum.ieee.org/chip-hall-of-fame-intel-4004-microprocessor">"Chip Hall of Fame: Intel 4004 Microprocessor"</a>. Institute of Electrical and Electronics Engineers. July 2, 2018. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220207101915/https://spectrum.ieee.org/chip-hall-of-fame-intel-4004-microprocessor">Archived</a> from the original on February 7, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">January 31,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-ibm_360-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-ibm_360_38-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.computer-museum.ru/books/archiv/ibm36040.pdf">"360 Revolution"</a> <span class="cs1-format">(PDF)</span>. Father, Son &amp; Co. 1990. <a rel="nofollow" class="external text" href="https://ghostarchive.org/archive/20221010/https://www.computer-museum.ru/books/archiv/ibm36040.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on 2022-10-10<span class="reference-accessdate">. Retrieved <span class="nowrap">February 5,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-infoworld_8-23-82-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-infoworld_8-23-82_39-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://books.google.com/books?id=VDAEAAAAMBAJ&amp;pg=PA22">"Bill Gates, Microsoft and the IBM Personal Computer"</a>. InfoWorld. August 23, 1982. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230218183644/https://books.google.com/books?id=VDAEAAAAMBAJ&amp;pg=PA22">Archived</a> from the original on 18 February 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">1 February</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-stroustrup-ch1-10-42"><span class="mw-cite-backlink">^ <a href="#cite_ref-stroustrup-ch1-10_42-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-stroustrup-ch1-10_42-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStroustrup2013" class="citation book cs1">Stroustrup, Bjarne (2013). <i>The C++ Programming Language, Fourth Edition</i>. Addison-Wesley. p.&nbsp;10. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-321-56384-2</bdi>.</cite></span>
</li>
<li id="cite_note-stroustrup-ch1-11-43"><span class="mw-cite-backlink">^ <a href="#cite_ref-stroustrup-ch1-11_43-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-stroustrup-ch1-11_43-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-stroustrup-ch1-11_43-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStroustrup2013" class="citation book cs1">Stroustrup, Bjarne (2013). <i>The C++ Programming Language, Fourth Edition</i>. Addison-Wesley. p.&nbsp;11. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-321-56384-2</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch4-p159-44"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch4-p159_44-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch4-p159_44-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;159. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-fla-ch1-p2-45"><span class="mw-cite-backlink">^ <a href="#cite_ref-fla-ch1-p2_45-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-fla-ch1-p2_45-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFLinz1990" class="citation book cs1">Linz, Peter (1990). <i>An Introduction to Formal Languages and Automata</i>. D. C. Heath and Company. p.&nbsp;2. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-669-17342-0</bdi>.</cite></span>
</li>
<li id="cite_note-dsa-ch2-p29-46"><span class="mw-cite-backlink"><b><a href="#cite_ref-dsa-ch2-p29_46-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWeiss1994" class="citation book cs1">Weiss, Mark Allen (1994). <i>Data Structures and Algorithm Analysis in C++</i>. Benjamin/Cummings Publishing Company, Inc. p.&nbsp;29. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-8053-5443-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco-ch1-p17-47"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco-ch1-p17_47-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/17"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/17">17</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-48"><span class="mw-cite-backlink"><b><a href="#cite_ref-48">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilkesRenwick1982" class="citation cs2">Wilkes, M. V.; Renwick, W. (1982), Randell, Brian (ed.), <span class="id-lock-subscription" title="Paid subscription required"><a rel="nofollow" class="external text" href="https://link.springer.com/chapter/10.1007/978-3-642-61812-3_34">"The EDSAC"</a></span>, <i>The Origins of Digital Computers: Selected Papers</i>, Berlin, Heidelberg: Springer, pp.&nbsp;<span class="nowrap">417–</span>421, <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2F978-3-642-61812-3_34">10.1007/978-3-642-61812-3_34</a>, <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-3-642-61812-3</bdi><span class="reference-accessdate">, retrieved <span class="nowrap">2025-04-25</span></span></cite></span>
</li>
<li id="cite_note-pis-ch4-p160-49"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch4-p160_49-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch4-p160_49-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-pis-ch4-p160_49-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-pis-ch4-p160_49-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-pis-ch4-p160_49-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-pis-ch4-p160_49-5"><sup><i><b>f</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;160. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-sco-ch7-p399-51"><span class="mw-cite-backlink">^ <a href="#cite_ref-sco-ch7-p399_51-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-sco-ch7-p399_51-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-sco-ch7-p399_51-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/399"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/399">399</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-sco-ch7-p400-52"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco-ch7-p400_52-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/400"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/400">400</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-sco-ch7-p398-53"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco-ch7-p398_53-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/398"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/398">398</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-26-54"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-26_54-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;26. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-37-55"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-37_55-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-37_55-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-37_55-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-37_55-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;37. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch4-p160_quote1-56"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch4-p160_quote1_56-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;160. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>. <q>With third-generation and higher-level programming languages, each statement in the language translates into several instructions in machine language.</q></cite></span>
</li>
<li id="cite_note-cpl-ch4-75-58"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl-ch4-75_58-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson1993" class="citation book cs1">Wilson, Leslie B. (1993). <i>Comparative Programming Languages, Second Edition</i>. Addison-Wesley. p.&nbsp;75. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-201-56885-1</bdi>.</cite></span>
</li>
<li id="cite_note-stroustrup-ch2-40-59"><span class="mw-cite-backlink"><b><a href="#cite_ref-stroustrup-ch2-40_59-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStroustrup2013" class="citation book cs1">Stroustrup, Bjarne (2013). <i>The C++ Programming Language, Fourth Edition</i>. Addison-Wesley. p.&nbsp;40. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-321-56384-2</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-16-60"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-16_60-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-16_60-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;16. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-24-61"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-24_61-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;24. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-25-62"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-25_62-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-25_62-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;25. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-19-63"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-19_63-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-19_63-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-19_63-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-19_63-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;19. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-geeksforgeeks-65"><span class="mw-cite-backlink">^ <a href="#cite_ref-geeksforgeeks_65-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-geeksforgeeks_65-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-geeksforgeeks_65-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-geeksforgeeks_65-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.geeksforgeeks.org/memory-layout-of-c-program/">"Memory Layout of C Programs"</a>. 12 September 2011. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20211106175644/https://www.geeksforgeeks.org/memory-layout-of-c-program/">Archived</a> from the original on 6 November 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">6 November</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-cpl-ch1-p31-66"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl-ch1-p31_66-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl-ch1-p31_66-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFKernighanRitchie1988" class="citation book cs1">Kernighan, Brian W.; Ritchie, Dennis M. (1988). <i>The C Programming Language Second Edition</i>. Prentice Hall. p.&nbsp;31. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-13-110362-8</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch6-128-67"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch6-128_67-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;128. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-lpi-ch6-p121-69"><span class="mw-cite-backlink">^ <a href="#cite_ref-lpi-ch6-p121_69-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-lpi-ch6-p121_69-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-lpi-ch6-p121_69-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFKerrisk2010" class="citation book cs1">Kerrisk, Michael (2010). <i>The Linux Programming Interface</i>. No Starch Press. p.&nbsp;121. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-59327-220-3</bdi>.</cite></span>
</li>
<li id="cite_note-lpi-ch6-p122-71"><span class="mw-cite-backlink"><b><a href="#cite_ref-lpi-ch6-p122_71-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKerrisk2010" class="citation book cs1">Kerrisk, Michael (2010). <i>The Linux Programming Interface</i>. No Starch Press. p.&nbsp;122. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-59327-220-3</bdi>.</cite></span>
</li>
<li id="cite_note-cpl-ch1-p185-72"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl-ch1-p185_72-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKernighanRitchie1988" class="citation book cs1">Kernighan, Brian W.; Ritchie, Dennis M. (1988). <i>The C Programming Language Second Edition</i>. Prentice Hall. p.&nbsp;185. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-13-110362-8</bdi>.</cite></span>
</li>
<li id="cite_note-cpl-ch8-p187-74"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl-ch8-p187_74-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl-ch8-p187_74-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFKernighanRitchie1988" class="citation book cs1">Kernighan, Brian W.; Ritchie, Dennis M. (1988). <i>The C Programming Language Second Edition</i>. Prentice Hall. p.&nbsp;187. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-13-110362-8</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-38-76"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-38_76-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-38_76-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-38_76-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;38. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch8-193-77"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch8-193_77-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;193. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-39-78"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-39_78-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;39. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-35-79"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-35_79-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;35. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch8-192-80"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch8-192_80-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;192. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-stroustrup-notes-22-81"><span class="mw-cite-backlink"><b><a href="#cite_ref-stroustrup-notes-22_81-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStroustrup2013" class="citation book cs1">Stroustrup, Bjarne (2013). <i>The C++ Programming Language, Fourth Edition</i>. Addison-Wesley. p.&nbsp;22. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-321-56384-2</bdi>.</cite></span>
</li>
<li id="cite_note-stroustrup-notes-21-82"><span class="mw-cite-backlink"><b><a href="#cite_ref-stroustrup-notes-21_82-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStroustrup2013" class="citation book cs1">Stroustrup, Bjarne (2013). <i>The C++ Programming Language, Fourth Edition</i>. Addison-Wesley. p.&nbsp;21. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-321-56384-2</bdi>.</cite></span>
</li>
<li id="cite_note-stroustrup-ch2-49-83"><span class="mw-cite-backlink"><b><a href="#cite_ref-stroustrup-ch2-49_83-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStroustrup2013" class="citation book cs1">Stroustrup, Bjarne (2013). <i>The C++ Programming Language, Fourth Edition</i>. Addison-Wesley. p.&nbsp;49. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-321-56384-2</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-218-84"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch9-218_84-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch9-218_84-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;218. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-217-85"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-217_85-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;217. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-dsa-ch3-p103-86"><span class="mw-cite-backlink"><b><a href="#cite_ref-dsa-ch3-p103_86-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWeiss1994" class="citation book cs1">Weiss, Mark Allen (1994). <i>Data Structures and Algorithm Analysis in C++</i>. Benjamin/Cummings Publishing Company, Inc. p.&nbsp;103. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-8053-5443-3</bdi>. <q>When there is a function call, all the important information needs to be saved, such as register values (corresponding to variable names) and the return address (which can be obtained from the program counter)[.] ... When the function wants to return, it ... restores all the registers. It then makes the return jump. Clearly, all of this work can be done using a stack, and that is exactly what happens in virtually every programming language that implements recursion.</q></cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-230-87"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch9-230_87-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch9-230_87-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch9-230_87-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;230. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-240-88"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-240_88-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;240. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-241-89"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch9-241_89-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch9-241_89-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch9-241_89-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;241. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-ArtOfLisp-90"><span class="mw-cite-backlink"><b><a href="#cite_ref-ArtOfLisp_90-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFJonesMaynardStewart2012" class="citation book cs1">Jones, Robin; Maynard, Clive; Stewart, Ian (December 6, 2012). <i>The Art of Lisp Programming</i>. Springer Science &amp; Business Media. p.&nbsp;2. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>9781447117193</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-220-91"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-220_91-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;220. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-221-92"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-221_92-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;221. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-229-93"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-229_93-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;229. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-227-94"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-227_94-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;227. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-222-95"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch9-222_95-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch9-222_95-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;222. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-Gordon1996-96"><span class="mw-cite-backlink"><b><a href="#cite_ref-Gordon1996_96-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFGordon1996" class="citation web cs1"><a href="Michael_J._C._Gordon" title="Michael J. C. Gordon">Gordon, Michael J. C.</a> (1996). <a rel="nofollow" class="external text" href="http://www.cl.cam.ac.uk/~mjcg/papers/HolHistory.html">"From LCF to HOL: a short history"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160905201847/http://www.cl.cam.ac.uk/~mjcg/papers/HolHistory.html">Archived</a> from the original on 2016-09-05<span class="reference-accessdate">. Retrieved <span class="nowrap">2021-10-30</span></span>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-233-97"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-233_97-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;233. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch9-235-98"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch9-235_98-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;235. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch3-55-99"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch3-55_99-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;55. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-100"><span class="mw-cite-backlink"><b><a href="#cite_ref-100">^</a></b></span> <span class="reference-text"><cite id="CITEREFColmerauerRoussel1992" class="citation journal cs1">Colmerauer, A.; Roussel, P. (1992). <a rel="nofollow" class="external text" href="http://alain.colmerauer.free.fr/alcol/ArchivesPublications/PrologHistory/19november92.pdf">"The birth of Prolog"</a> <span class="cs1-format">(PDF)</span>. <i>ACM SIGPLAN Notices</i>. <b>28</b> (3). Association for Computing Machinery: 5. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F155360.155362">10.1145/155360.155362</a>.</cite></span>
</li>
<li id="cite_note-Logical_English-101"><span class="mw-cite-backlink"><b><a href="#cite_ref-Logical_English_101-0">^</a></b></span> <span class="reference-text">Kowalski, R., Dávila, J., Sartor, G. and Calejo, M., 2023. Logical English for law and education. In Prolog: The Next 50 Years (pp. 287–299). Cham: Springer Nature Switzerland.</span>
</li>
<li id="cite_note-cpl_3rd-ch2-35_quote1-102"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch2-35_quote1_102-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch2-35_quote1_102-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;35. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>. <q>Simula was based on Algol 60 with one very important addition — the class concept. ... The basic idea was that the data (or data structure) and the operations performed on it belong together[.]</q></cite></span>
</li>
<li id="cite_note-cpl_3rd-ch2-39_quote1-103"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch2-39_quote1_103-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;39. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>. <q>Originally, a large number of experimental languages were designed, many of which combined object-oriented and functional programming.</q></cite></span>
</li>
<li id="cite_note-se-ch9-284_quote1-104"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-ch9-284_quote1_104-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;284. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>. <q>While it is true that OOD [(object oriented design)] as such is not supported by the majority of popular languages, a large subset of OOD can be used.</q></cite></span>
</li>
<li id="cite_note-dsa-ch3-p57-105"><span class="mw-cite-backlink"><b><a href="#cite_ref-dsa-ch3-p57_105-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWeiss1994" class="citation book cs1">Weiss, Mark Allen (1994). <i>Data Structures and Algorithm Analysis in C++</i>. Benjamin/Cummings Publishing Company, Inc. p.&nbsp;57. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-8053-5443-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch9-285-106"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-ch9-285_106-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;285. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch12-290_quote-107"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch12-290_quote_107-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;290. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>. <q>The syntax (or grammar) of a programming language describes the correct form in which programs may be written[.]</q></cite></span>
</li>
<li id="cite_note-cpl_3rd-ch4-78_quote1-108"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch4-78_quote1_108-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;78. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>. <q>The main components of an imperative language are declarations, expressions, and statements.</q></cite></span>
</li>
<li id="cite_note-cpl_3rd-ch12-290-109"><span class="mw-cite-backlink">^ <a href="#cite_ref-cpl_3rd-ch12-290_109-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-cpl_3rd-ch12-290_109-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;290. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch12-294-110"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch12-294_110-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;294. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-discrete-ch10-p615-111"><span class="mw-cite-backlink"><b><a href="#cite_ref-discrete-ch10-p615_111-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosen1991" class="citation book cs1">Rosen, Kenneth H. (1991). <a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/615"><i>Discrete Mathematics and Its Applications</i></a>. McGraw-Hill, Inc. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/615">615</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-07-053744-6</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch12-291-112"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch12-291_112-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;291. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-discrete-ch10-p616-113"><span class="mw-cite-backlink"><b><a href="#cite_ref-discrete-ch10-p616_113-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosen1991" class="citation book cs1">Rosen, Kenneth H. (1991). <a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/616"><i>Discrete Mathematics and Its Applications</i></a>. McGraw-Hill, Inc. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/616">616</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-07-053744-6</bdi>.</cite></span>
</li>
<li id="cite_note-discrete-ch10-p623-114"><span class="mw-cite-backlink"><b><a href="#cite_ref-discrete-ch10-p623_114-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosen1991" class="citation book cs1">Rosen, Kenneth H. (1991). <a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/623"><i>Discrete Mathematics and Its Applications</i></a>. McGraw-Hill, Inc. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/623">623</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-07-053744-6</bdi>.</cite></span>
</li>
<li id="cite_note-discrete-ch10-p624-115"><span class="mw-cite-backlink"><b><a href="#cite_ref-discrete-ch10-p624_115-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosen1991" class="citation book cs1">Rosen, Kenneth H. (1991). <a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/624"><i>Discrete Mathematics and Its Applications</i></a>. McGraw-Hill, Inc. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/discretemathemat00rose/page/624">624</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-07-053744-6</bdi>.</cite></span>
</li>
<li id="cite_note-cpl_3rd-ch12-297-116"><span class="mw-cite-backlink"><b><a href="#cite_ref-cpl_3rd-ch12-297_116-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWilson2001" class="citation book cs1">Wilson, Leslie B. (2001). <i>Comparative Programming Languages, Third Edition</i>. Addison-Wesley. p.&nbsp;297. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-71012-9</bdi>.</cite></span>
</li>
<li id="cite_note-se-preface1-117"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-preface1_117-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;Preface. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch12-p507-118"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch12-p507_118-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch12-p507_118-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-pis-ch12-p507_118-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;507. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch12-p513-119"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch12-p513_119-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch12-p513_119-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;513. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch12-p514-120"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch12-p514_120-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;514. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch12-p516-121"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch12-p516_121-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;516. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch1-8-122"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-ch1-8_122-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;8. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch12-p517-123"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch12-p517_123-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;517. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch11-345-124"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-ch11-345_124-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;345. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch10-319-125"><span class="mw-cite-backlink">^ <a href="#cite_ref-se-ch10-319_125-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-se-ch10-319_125-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-se-ch10-319_125-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-se-ch10-319_125-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;319. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch10-331-126"><span class="mw-cite-backlink">^ <a href="#cite_ref-se-ch10-331_126-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-se-ch10-331_126-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;331. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch8-216-127"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-ch8-216_127-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;216. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch8-219-128"><span class="mw-cite-backlink">^ <a href="#cite_ref-se-ch8-219_128-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-se-ch8-219_128-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-se-ch8-219_128-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;219. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch8-226-129"><span class="mw-cite-backlink">^ <a href="#cite_ref-se-ch8-226_129-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-se-ch8-226_129-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;226. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch8-220-130"><span class="mw-cite-backlink">^ <a href="#cite_ref-se-ch8-220_130-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-se-ch8-220_130-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;220. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch9-258-131"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-ch9-258_131-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;258. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-se-ch9-259-132"><span class="mw-cite-backlink"><b><a href="#cite_ref-se-ch9-259_132-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchach1990" class="citation book cs1">Schach, Stephen R. (1990). <i>Software Engineering</i>. Aksen Associates Incorporated Publishers. p.&nbsp;259. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-256-08515-3</bdi>.</cite></span>
</li>
<li id="cite_note-osc-overview-133"><span class="mw-cite-backlink">^ <a href="#cite_ref-osc-overview_133-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-osc-overview_133-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-osc-overview_133-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSilberschatz1994" class="citation book cs1">Silberschatz, Abraham (1994). <i>Operating System Concepts, Fourth Edition</i>. Addison-Wesley. p.&nbsp;1. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-201-50480-4</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch4-p147_quote1-134"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch4-p147_quote1_134-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;147. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>. <q>The key to unlocking the potential of any computer system is application software.</q></cite></span>
</li>
<li id="cite_note-pis-ch4-p148-135"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch4-p148_135-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch4-p148_135-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-pis-ch4-p148_135-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-pis-ch4-p148_135-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;147. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch4-p147_quote2-136"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch4-p147_quote2_136-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;147. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>. <q>[A] third-party software firm, often called a value-added software vendor, may develop or modify a software program to meet the needs of a particular industry or company.</q></cite></span>
</li>
<li id="cite_note-pis-ch4-p148_quote1-137"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch4-p148_quote1_137-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;148. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>. <q>Heading: Proprietary Software; Subheading: Advantages; Quote: You can get exactly what you need in terms of features, reports, and so on.</q></cite></span>
</li>
<li id="cite_note-pis-ch4-p148_quote2-138"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch4-p148_quote2_138-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;148. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>. <q>Heading: Proprietary Software; Subheading: Advantages; Quote: Being involved in the development offers a further level of control over the results.</q></cite></span>
</li>
<li id="cite_note-pis-ch4-p148_quote3-139"><span class="mw-cite-backlink"><b><a href="#cite_ref-pis-ch4-p148_quote3_139-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;147. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>. <q>Heading: Proprietary Software; Subheading: Advantages; Quote: There is more flexibility in making modifications that may be required to counteract a new initiative by one of your competitors or to meet new supplier and/or customer requirements.</q></cite></span>
</li>
<li id="cite_note-pis-ch4-p149-140"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch4-p149_140-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch4-p149_140-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-pis-ch4-p149_140-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-pis-ch4-p149_140-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;149. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-sco-ch1-p11-141"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco-ch1-p11_141-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum1990" class="citation book cs1">Tanenbaum, Andrew S. (1990). <a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/11"><i>Structured Computer Organization, Third Edition</i></a>. Prentice Hall. p.&nbsp;<a rel="nofollow" class="external text" href="https://archive.org/details/structuredcomput00tane/page/11">11</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-854662-5</bdi>.</cite></span>
</li>
<li id="cite_note-lpi-ch2-p21-142"><span class="mw-cite-backlink">^ <a href="#cite_ref-lpi-ch2-p21_142-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-lpi-ch2-p21_142-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFKerrisk2010" class="citation book cs1">Kerrisk, Michael (2010). <i>The Linux Programming Interface</i>. No Starch Press. p.&nbsp;21. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-59327-220-3</bdi>.</cite></span>
</li>
<li id="cite_note-lpi-ch2-p22-143"><span class="mw-cite-backlink">^ <a href="#cite_ref-lpi-ch2-p22_143-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-lpi-ch2-p22_143-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-lpi-ch2-p22_143-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-lpi-ch2-p22_143-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-lpi-ch2-p22_143-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFKerrisk2010" class="citation book cs1">Kerrisk, Michael (2010). <i>The Linux Programming Interface</i>. No Starch Press. p.&nbsp;22. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-59327-220-3</bdi>.</cite></span>
</li>
<li id="cite_note-duos-ch6-p152-144"><span class="mw-cite-backlink">^ <a href="#cite_ref-duos-ch6-p152_144-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-duos-ch6-p152_144-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-duos-ch6-p152_144-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFBach1986" class="citation book cs1">Bach, Maurice J. (1986). <i>The Design of the UNIX Operating System</i>. Prentice-Hall, Inc. p.&nbsp;152. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-13-201799-7</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch6-p443-145"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch6-p443_145-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;443. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-esa-ch1-p8-146"><span class="mw-cite-backlink"><b><a href="#cite_ref-esa-ch1-p8_146-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFLacamera2018" class="citation book cs1">Lacamera, Daniele (2018). <i>Embedded Systems Architecture</i>. Packt. p.&nbsp;8. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-78883-250-2</bdi>.</cite></span>
</li>
<li id="cite_note-lpi-ch2-p23-147"><span class="mw-cite-backlink"><b><a href="#cite_ref-lpi-ch2-p23_147-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKerrisk2010" class="citation book cs1">Kerrisk, Michael (2010). <i>The Linux Programming Interface</i>. No Starch Press. p.&nbsp;23. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-59327-220-3</bdi>.</cite></span>
</li>
<li id="cite_note-upe-ch7-p201-148"><span class="mw-cite-backlink"><b><a href="#cite_ref-upe-ch7-p201_148-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKernighan1984" class="citation book cs1">Kernighan, Brian W. (1984). <i>The Unix Programming Environment</i>. Prentice Hall. p.&nbsp;201. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-13-937699-2</bdi>.</cite></span>
</li>
<li id="cite_note-lpi-ch10-p187-149"><span class="mw-cite-backlink"><b><a href="#cite_ref-lpi-ch10-p187_149-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKerrisk2010" class="citation book cs1">Kerrisk, Michael (2010). <i>The Linux Programming Interface</i>. No Starch Press. p.&nbsp;187. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-59327-220-3</bdi>.</cite></span>
</li>
<li id="cite_note-usp-ch6-p121-150"><span class="mw-cite-backlink"><b><a href="#cite_ref-usp-ch6-p121_150-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFHaviland1987" class="citation book cs1">Haviland, Keith (1987). <i>Unix System Programming</i>. Addison-Wesley Publishing Company. p.&nbsp;121. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-201-12919-1</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch4-p145-152"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch4-p145_152-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch4-p145_152-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-pis-ch4-p145_152-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;145. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-pis-ch4-p146-153"><span class="mw-cite-backlink">^ <a href="#cite_ref-pis-ch4-p146_153-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pis-ch4-p146_153-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-pis-ch4-p146_153-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFStair2003" class="citation book cs1">Stair, Ralph M. (2003). <i>Principles of Information Systems, Sixth Edition</i>. Thomson. p.&nbsp;146. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-619-06489-7</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch1-p6-154"><span class="mw-cite-backlink">^ <a href="#cite_ref-sco6th-ch1-p6_154-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-sco6th-ch1-p6_154-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;6. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch4-p243-155"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch4-p243_155-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;243. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch3-p147-156"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch3-p147_156-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;147. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch3-p148-157"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch3-p148_157-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;148. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch4-p253-158"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch4-p253_158-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;253. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch4-p255-159"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch4-p255_159-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;255. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch3-p161-160"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch3-p161_160-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;161. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch3-p166-161"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch3-p166_161-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;166. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
<li id="cite_note-sco6th-ch4-p249-162"><span class="mw-cite-backlink"><b><a href="#cite_ref-sco6th-ch4-p249_162-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTanenbaum2013" class="citation book cs1">Tanenbaum, Andrew S. (2013). <i>Structured Computer Organization, Sixth Edition</i>. Pearson. p.&nbsp;249. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-13-291652-3</bdi>.</cite></span>
</li>
</ol></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-08-01" href="https://en.wikipedia.org/wiki/?title=Computer_program&amp;oldid=1303689705">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>